Closed Bug 587249 Opened 14 years ago Closed 14 years ago

Major Australian News Sites Formatted and Messed Up In Firefox 4


(Tech Evangelism Graveyard :: English Other, defect)

Not set


(Not tracked)



(Reporter: scott, Unassigned)


(Blocks 1 open bug, )


User-Agent:       Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b3) Gecko/20100805 Firefox/4.0b3
Build Identifier: Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b3) Gecko/20100805 Firefox/4.0b3

Display issues with and other news limited sites.

Reproducible: Always

Steps to Reproduce:
1.Open and scroll to the bottom.
2.Open and scroll to the bottom.

Actual Results:  
As above

Expected Results:  
Website is unusable at the bottom

Displayed the page properly
Build Worked : 
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091201 Minefield/3.7a1pre

Build Broken : 
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091202 Minefield/3.7a1pre

Pushlog :
Ever confirmed: true
Thanks for the bug report!

The problem is in <>. It uses "use strict"; but relies on that not working:

> Error: assignment to undeclared variable _global_
> Source File:
> Line: 1
Assignee: nobody → english-other
Blocks: es5strict
Component: General → English Other
OS: Windows 7 → All
Product: Firefox → Tech Evangelism
QA Contact: general → english-other
Hardware: x86 → All
Great! Glad it's not just me :) Look forward to it being fixed so I can use Firefox 4 again. Cheers
To be clear, Scott, you (or someone else) need to contact the site, explain the problem (feel free to point them to this bug), and get them to fix their site. There is nothing the Firefox or Gecko developers can do to fix this in Firefox (or any other browser).

Why does it work fine in Firefox 3 then?
(In reply to comment #5)
> Why does it work fine in Firefox 3 then?

It appears from comment 2 that they were relying on a bug in Firefox 3 to continue to exist indefinitely. Needless to say, re-introducing that bug is not going to happen.

I should be clearer: we have introduced a new JavaScript feature, ES5 strict mode, [1] which requires opt-in from the script author in such a way that older browsers just ignore it. Strict mode is intended to make JavaScript more predictable and to catch JavaScript errors earlier, by raising exceptions.

In this case, the script assigns a value to an implicit global variable [2], which works in normal JavaScript but is forbidden in strict mode. There are two possible solutions here:

1. Remove the '"use strict";' statement at the start of
   <>, to avoid opting into
   strict mode.
2. Audit the script for strict mode problems, in particular change
     'if(typeof _global_==="undefined"){_global_={...'
     'if(typeof _global_==="undefined"){var _global_={...'
   There probably are other problems, though.

Option 1. is probably the easiest for them.

[1] <> is a good
[2] Mentioned, for example, in <>
Is anyone evangelizing the site?

I have found this bug to be fixed. All sites I visit now work fine in Firefox 4 beta 8. I would recommend that it be closed now.
Closed: 14 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.