W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2013

Re: [whatwg] Global script clean-up jobs and "spin the event loop"

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 3 Sep 2013 20:44:40 +0000 (UTC)
To: Glenn Maynard <glenn@zewt.org>
Message-ID: <alpine.DEB.2.00.1309032043540.7443@ps20323.dreamhostps.com>
Cc: whatwg <whatwg@whatwg.org>
On Tue, 28 May 2013, Glenn Maynard wrote:
>
> "Jump to a code entry-point" essentially maintains a stack of entry 
> scripts, to determine the "outermost" script in order to know whether to 
> run the global clean-up jobs.  This assumes that this algorithm will 
> always be entered and exited as a stack: an invocation of the algorithm 
> must always complete after any later invocations.
> 
> Does this hold even in the face of multiple nested invocations of "spin 
> the event loop" algorithm?  That algorithm doesn't seem to try to 
> guarantee any kind of stack-like behavior.

I've fixed this, but I haven't tested to see what browsers actually do in 
this case. (This can only happen, as far as I can tell, in nested 
showModalDialog() loops that happen to resume out-of-order. I suspect in 
reality browsers won't let you do this, which would make this moot?)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 3 September 2013 20:45:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:09 UTC