W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Race condition in media load algorithm

From: Philip Jägenstedt <philipj@opera.com>
Date: Wed, 04 Aug 2010 12:56:30 +0200
Message-ID: <op.vgwt0gcisr6mfa@philip-pc.gothenburg.osa>
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
Received on Wednesday, 4 August 2010 03:56:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC