Bug 7722 - Order of execution of cached scripts differs from other browsers (BBC News Player not opening requested video)
Summary: Order of execution of cached scripts differs from other browsers (BBC News Pl...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 417.x
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://news.bbc.co.uk/
Keywords: HasReduction
: 6150 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-11 10:30 PST by Stephen Harbage
Modified: 2019-05-02 16:20 PDT (History)
8 users (show)

See Also:


Attachments
test case (2.59 KB, application/octet-stream)
2006-05-23 02:52 PDT, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Harbage 2006-03-11 10:30:20 PST
Hello.

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 1.5.0.1.

Hope you can fix it okay.
Comment 1 Alexey Proskuryakov 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 Alexey Proskuryakov 2006-05-22 06:35:23 PDT
*** Bug 6150 has been marked as a duplicate of this bug. ***
Comment 3 Alexey Proskuryakov 2006-05-23 02:52:32 PDT
Created attachment 8479 [details]
test case
Comment 4 Alexey Proskuryakov 2006-05-23 03:05:08 PDT
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 Nicholas Shanks 2006-07-01 12:20:40 PDT
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 Alexey Proskuryakov 2006-12-15 09:35:16 PST
Bug 11838 may have the same root cause as this one.
Comment 7 Stephen Harbage 2007-04-11 17:08:50 PDT
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 Nicholas Shanks 2007-04-11 18:23:38 PDT
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 Alexey Proskuryakov 2007-04-16 01:06:14 PDT
Removing HitListCandidate keyword per comments 7 and 8.
Comment 10 Alexey Proskuryakov 2008-01-28 09:41:01 PST
Bug 17040 may have the same root cause as this one.