Fwd: "delay" keyword

Ian Hickson ian at hixie.ch
Wed Sep 5 09:48:51 PDT 2012


On Thu, 5 Jul 2012, Boris Zbarsky wrote:
> On 7/5/12 1:50 PM, Brendan Eich wrote:
> > Seems like a bug in Firefox, a violation of HTML5 even. The slow 
> > script dialog should not allow an event loop to nest. Cc'ing Boris for 
> > his opinion (this may be a known bug on file, my memory dims with 
> > age).
> 
> [...] Say the user decides to close the tab or window when they get the 
> slow script prompt (something that I think is desirable to allow the 
> user to do, personally). Should this close the tab/window without firing 
> unload events (a spec violation)

That's not a script violation, it's just equivalent to turning off 
scripts briefly and closing the browsing context.


> or should it fire them while other script from the page is on the stack 
> and at some random point in its execution (hey, another spec violation)?

The spec allows user agents to abort scripts (with or without catchable 
exceptions) upon a timeout or upon user request, so it wouldn't be a spec 
violation either way.

http://www.whatwg.org/specs/web-apps/current-work/#killing-scripts

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the es-discuss mailing list