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

[whatwg] Race condition in media load algorithm

From: Chris Pearce <chris@pearce.org.nz>
Date: Mon, 02 Aug 2010 13:50:20 +1200
Message-ID: <4C56245C.3080604@pearce.org.nz>
  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. In the asynchronous 
task, we set the delaying-the-load-event flag to true at step 4. But 
between the resource selection algorithm setting the task to 
asynchronously continue the algorithm, and the task actually running, 
the load event could fire, before we have a chance to set the 
delaying-the-load-event flag to true. I suggest we set the 
delaying-the-load-event flag to true before we set the task to continue 
the rest of the resource selection algorithm asynchronously.

Chris Pearce.
Received on Sunday, 1 August 2010 18:50:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:59 UTC