Closed
Bug 629781
Opened 15 years ago
Closed 11 years ago
BBC's image views don't work because of racy interdependencies between script-inserted external scripts
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(blocking2.0 -)
RESOLVED
WORKSFORME
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | - |
People
(Reporter: ehsan.akhgari, Unassigned)
References
()
Details
(Keywords: regression)
See <http://www.bbc.co.uk/arabic/middleeast/2011/01/110128_egypt_friday_gellery.shtml>. You should see images instead of the large blank area in the middle of the screen. Here's what the js error looks like:
[16:36:47.253] h.widgets is undefined @ http://node1.bbcimg.co.uk/glow/glow/1.7.3/widgets/widgets.js:18
This page works fine in 3.6.
Updated•15 years ago
|
blocking2.0: --- → ?
Comment 1•15 years ago
|
||
This looks very similar to the error Gary reported on an asian news site.
Comment 2•15 years ago
|
||
(In reply to comment #1)
> This looks very similar to the error Gary reported on an asian news site.
Namely, bug 629622.
blocking2.0: ? → betaN+
Whiteboard: hardblocker
| Reporter | ||
Comment 3•15 years ago
|
||
I noticed that if I try hard enough (i.e, press Cmd+R or Cmd+Shift+R enough times) the images show up. This makes finding the regression range quite hard...
| Reporter | ||
Comment 4•15 years ago
|
||
This is what I get when loading the page from my debug build:
++DOMWINDOW == 19 (0x129261da8) [serial = 31] [outer = 0x1344ed030]
WARNING: No script language registered for this mime-type: file /Users/ehsanakhgari/moz/mozilla-central/dom/base/nsDOMScriptObjectFactory.cpp, line 160
WARNING: The script-type is unknown: file /Users/ehsanakhgari/moz/mozilla-central/content/base/src/nsDocument.cpp, line 3107
WARNING: Not same origin error!: file /Users/ehsanakhgari/moz/mozilla-central/dom/base/nsJSEnvironment.cpp, line 425
JavaScript error: http://node1.bbcimg.co.uk/glow/glow/1.7.3/widgets/widgets.js, line 18: h.widgets is undefined
WARNING: Unable to test style tree integrity -- no content node: file /Users/ehsanakhgari/moz/mozilla-central/layout/base/nsCSSFrameConstructor.cpp, line 8060
WARNING: Unable to test style tree integrity -- no content node: file /Users/ehsanakhgari/moz/mozilla-central/layout/base/nsCSSFrameConstructor.cpp, line 8060
WARNING: Unable to test style tree integrity -- no content node: file /Users/ehsanakhgari/moz/mozilla-central/layout/base/nsCSSFrameConstructor.cpp, line 8060
Don't know which parts are relevant...
| Reporter | ||
Comment 5•15 years ago
|
||
And this, when the images show up successfully:
++DOMWINDOW == 19 (0x1292b6268) [serial = 32] [outer = 0x1344ed030]
WARNING: No script language registered for this mime-type: file /Users/ehsanakhgari/moz/mozilla-central/dom/base/nsDOMScriptObjectFactory.cpp, line 160
WARNING: The script-type is unknown: file /Users/ehsanakhgari/moz/mozilla-central/content/base/src/nsDocument.cpp, line 3107
WARNING: Unable to test style tree integrity -- no content node: file /Users/ehsanakhgari/moz/mozilla-central/layout/base/nsCSSFrameConstructor.cpp, line 8060
WARNING: Unable to test style tree integrity -- no content node: file /Users/ehsanakhgari/moz/mozilla-central/layout/base/nsCSSFrameConstructor.cpp, line 8060
At first I thought the number of "Unable to test style tree integrity" warnings are significant, but I also got runs with only two of them which failed to load the images...
Comment 6•15 years ago
|
||
I get this regression range from TM nightlies:
http://hg.mozilla.org/tracemonkey/pushloghtml?fromchange=98c134cf59ef&tochange=6ff07c1f4dc2
Comment 7•15 years ago
|
||
Oddly, the pages look just fine with today's build under Linux.
Comment 8•15 years ago
|
||
Is this OSX only?
Comment 9•15 years ago
|
||
(In reply to comment #8)
> Is this OSX only?
I repro'd it on Win 7.
Comment 10•15 years ago
|
||
I narrowed the range to:
http://hg.mozilla.org/tracemonkey/pushloghtml?fromchange=f8a4a5f68942&tochange=cd8b5689ffbf
There's only one JS patch in that range, and it's a very unlikely candidate. I'm almost certain this is the patch that caused the regression:
http://hg.mozilla.org/tracemonkey/rev/a60414d076b5
changeset: 54680:a60414d076b5
user: Henri Sivonen <hsivonen@iki.fi>
date: Wed Sep 01 14:41:12 2010 +0300
summary: Bug 591981 - Make script-inserted inline scripts run right away, make script-inserted external scripts behave like async scripts and make document.write writing an inline script return at a predictable time. r=jonas, a=blocking2.0-beta7.
A key piece of evidence is that the linked URL fails in the same way in Chrome, and bug 591981 comment 0 says that bug brings Fx in line with HTML5 and other browsers. Looks like an evangelism issue to me.
Assignee: general → arabic
blocking2.0: betaN+ → -
Component: JavaScript Engine → Arabic
Product: Core → Tech Evangelism
QA Contact: general → arabic
Whiteboard: hardblocker
Version: Trunk → unspecified
Comment 11•15 years ago
|
||
I don't see the problem, but that doesn't mean it's fixed, because the HTTP requests may finish in a different order for me.
If the problem persists, I suggest pointing the BBC to http://hsivonen.iki.fi/script-execution/
Keywords: regressionwindow-wanted
Summary: BBC's image views don't work because of a JavaScript error → BBC's image views don't work because of racy interdependencies between script-inserted external scripts
Comment 12•11 years ago
|
||
tested on Firefox 31, and Safari.
Working for me.
Assignee: arabic → nobody
Status: NEW → RESOLVED
Closed: 11 years ago
Component: Arabic → Desktop
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•7 years ago
|
Product: Tech Evangelism → Web Compatibility
You need to log in
before you can comment on or make changes to this bug.
Description
•