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

[whatwg] Race condition in media load algorithm

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 02 Aug 2010 11:10:38 -0400
Message-ID: <4C56DFEE.3040602@mit.edu>
On 8/2/10 5:17 AM, Ian Hickson wrote:
>> There's a race condition in the media load algorithm. When the resource
>> selection algorithm begins, it sets a task to complete the rest of the
>> resource selection algorithm asynchronously.
> Not quite. It awaits a stable state and then runs a synchronous section,
> which means that it will run the subsequent steps as soon as the current
> task has finished, before anything else that is queued.

So the model is that there are asynchronous tasks but there are also 
things that run after the "current asynchronous task" finishes?

How are we defining "current asynchronous task" and "finish"?  How does 
this setup handle cases when the "current asynchronous task" spins the 
event loop, if at all?

Received on Monday, 2 August 2010 08:10:38 UTC

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