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

[whatwg] Race condition in media load algorithm

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 3 Aug 2010 23:32:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1008032329400.5947@ps20323.dreamhostps.com>
On Wed, 4 Aug 2010, Chris Pearce wrote:
> So the task spinning the event loop has run up to the point of spinning 
> the event loop, then we run the synchronous section, and then the task 
> which was spinning the event loop will resume after its goal is met at 
> some later time?

Sounds right.

> In the case of a tasks which invokes an algorithm which has a 
> synchronous section, and then pauses the event loop (such calling 
> window.alert()), we should not run the synchronous section until the 
> event loop pause has completed?

Currently, yeah. We might want to make "pause" also trigger synchronous 
sections, if that's a problem.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 3 August 2010 16:32:02 UTC

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