Bug 7722

Summary: Order of execution of cached scripts differs from other browsers (BBC News Player not opening requested video)
Product: WebKit Reporter: Stephen Harbage <s_harbage@yahoo.co.uk>
Component: Page LoadingAssignee: Nobody <webkit-unassigned@lists.webkit.org>
Status: REOPENED    
Severity: Normal CC: ap@webkit.org, ian@hixie.ch, koivisto@iki.fi, mitz@webkit.org, nickshanks@nickshanks.com, s_harbage@yahoo.co.uk, solushex@gmail.com
Priority: P2 Keywords: HasReduction
Version: 417.x   
Hardware: Macintosh   
OS: Mac OS X 10.4   
URL: http://news.bbc.co.uk/
Description Flags
test case none

Description From 2006-03-11 10:30:20 PST

If you go to the BBC News' webpage (http://news.bbc.co.uk/) and look to the lower right of the screen. 

Under the title in white and red: BBC NEWS: VIDEO AND AUDIO with links to the video available. E.g. 'Drought crisis threatens many Somalians' with a little picture

Click on either the picture, text ('Drought crisis threatens many Somalians') or grey button with 'video' on it.

It should then open a window entitled 'BBC News Player'. What should happen is that it opens the video requested but it does not (ie it only opens the BBC News three second intro screen, not the drought crisis video). Try it again: close the BBC News Player window and click on something else: picture, text or grey video button. Doing this repeatedly sometimes makes it work (or if it worked first time try another link).

I found this bug to be repeatable in Mac OS X 10.3, Safari webcore 312.3 as well as 417.8

The bug does not occur however, on Firefox

Hope you can fix it okay.
------- Comment #1 From 2006-03-11 14:45:35 PST -------
Confirmed with stock 10.4.5 Safari and with ToT.

On the first attempt, I got a window asking whether I prefer Real Player or Windows Media. I chose Real, it worked for this first time, but then started to only show the intro screen.

Even when it works, there are errors in the console:

ERROR: NPP_NewStream failed with error: 12 responseURL: http://news.bbc.co.uk/media/avdb/news_web/video/9012da68003c1c8/nb/09012da68003c2d4_16x9_nb.ram
(/Users/ap/WebKit/WebKit/Plugins/WebBaseNetscapePluginStream.m:229 -[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:])
------- Comment #2 From 2006-05-22 06:35:23 PST -------
*** Bug 6150 has been marked as a duplicate of this bug. ***
------- Comment #3 From 2006-05-23 02:52:32 PST -------
Created an attachment (id=8479) [details]
test case
------- Comment #4 From 2006-05-23 03:05:08 PST -------
The NPP_NewStream error turns to be red herring. The real problem here is the execution order of scripts invoked from separate frames - it is different, depending on whether the scripts are already cached.

The attached test case logs script execution to the JavaScript console; the expected order is (1, 3, 2), as observed on first load in Safari/WebKit, and always observed in Firefox.
------- Comment #5 From 2006-07-01 12:20:40 PST -------
By the way, the workaround for this is to right-click on the right hand side of the window and choose Reload Frame. Then the video plays. I've been doing this for a few years now :-)
------- Comment #6 From 2006-12-15 09:35:16 PST -------
Bug 11838 may have the same root cause as this one.
------- Comment #7 From 2007-04-11 17:08:50 PST -------
As the BBC have changed their Audio and Video viewer completely this doesn't apply and doesn't have these problems so I guess Invalid is the best resolution.

Thanks anyway : )
------- Comment #8 From 2007-04-11 18:23:38 PST -------
No, just because the BBC have changed their site doesn't mean the cause of the bug (out of sequence loading of javascripts) is invalid. I am reopening, though perhaps its priority can now be reduced.
------- Comment #9 From 2007-04-16 01:06:14 PST -------
Removing HitListCandidate keyword per comments 7 and 8.
------- Comment #10 From 2008-01-28 09:41:01 PST -------
Bug 17040 may have the same root cause as this one.