MantisBT - NetSurf
View Issue Details
0002379NetSurfJavascriptpublic2015-11-03 22:492015-11-04 15:27
ReporterHarriet Bazley 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformARMOSRISC OSOS Version5.19
Product Version3.4 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #3046
URL of problem pagehttp://fb-187.sfglobe.com/2015/03/13/bunker-is-transformed-to-be-a-four-bedroom-home-with-skylights/
Summary0002379: Another case of non-scrolling
DescriptionWork area always resizes to match current visible area extent - there is no way of scrolling this page.
Steps To ReproduceVisit page http://fb-187.sfglobe.com/2015/03/13/bunker-is-transformed-to-be-a-four-bedroom-home-with-skylights/
 
Additional InformationTried with and without Javascript enabled.
Also tried doing a full save and deleting all the local CSS files.
TagsNo tags attached.
Attached Files

Notes
(0001025)
Michael Drake   
2015-11-04 14:59   
This is one of the craziest things I've seen on a web site:

<body style='overflow:hidden;margin:0px;padding:0px;'>
<script type="text/javascript">
if(!window.parent || window.parent == window) {
  document.body.style.overflow = '';
}
</script>

In other words they deliberately don't let you scroll when JavaScript is disabled, and indeed you can't scroll in Firefox with JavaScript disabled.

The bit in the script that sets the body element's CSS overflow property to '' is one of the bits of JavaScript handling we've not got to yet.
(0001026)
Harriet Bazley   
2015-11-04 15:27   
This seems such a bizarre thing to do that I actually wonder if it is an error in their site coding; I have e-mailed the newspaper to enquire.

Issue History
2015-11-03 22:49Harriet BazleyNew Issue
2015-11-03 23:52Vincent SandersAssigned To => Michael Drake
2015-11-03 23:52Vincent SandersStatusnew => acknowledged
2015-11-03 23:52Vincent SandersProduct Version => 3.4
2015-11-03 23:52Vincent SandersSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1658#r1658
2015-11-03 23:52Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=1660#r1660
2015-11-04 14:59Michael DrakeNote Added: 0001025
2015-11-04 15:00Michael DrakeAssigned ToMichael Drake =>
2015-11-04 15:00Michael DrakeStatusacknowledged => confirmed
2015-11-04 15:00Michael DrakeCategoryLayout => Javascript
2015-11-04 15:27Harriet BazleyNote Added: 0001026