[whatwg] Race condition in media load algorithm

Ian Hickson ian at hixie.ch
Tue Aug 3 16:32:02 PDT 2010


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list