[whatwg] Race condition in media load algorithm

Philip Jägenstedt philipj at opera.com
Wed Aug 4 03:56:30 PDT 2010


On Wed, 04 Aug 2010 11:32:51 +0200, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 8/4/10 4:29 AM, Philip Jägenstedt wrote:
>> That could be, but is this behavior actually useful for anything? It's
>> certainly simpler to implement and more predictable for authors to
>> always wait until the current script has finished executing.
>
> 1)  That requires defining "current script".

OK, but that's just a spec problem. It's trivial in implementation because  
when the resource selection algorithm was is triggered by a script, you  
can just pass along a reference to that very script.

> 2)  Who said it will ever finish executing?

If it doesn't, just don't ever continue with the synchronous section. Is  
there any valid case for a script never finishing? It would block all  
event handlers from running too, so in any case it's a broken page.

-- 
Philip Jägenstedt
Core Developer
Opera Software



More information about the whatwg mailing list