Re: Strict mode callbacks and setTimeout

On Fri, 8 Jul 2011, Boris Zbarsky wrote:
> > 
> > This might be too strong a requirement, though. I'm happy to scope it 
> > somewhat if that would make more sense. Scoping it to the Window 
> > objects using the same event loop probably makes the most sense; would 
> > that be better?
> 
> I'm not sure it would be enough better.  As the spec is currently 
> phrased, that would mean that a setTimeout(0) call on a background-tab 
> window would delay a later setTimeout(0) call on a foreground window 
> that is on the same event loop.  That somewhat defeats the point of 
> throttling background windows.

Fair enough. I've scoped it to the same Window.

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

Received on Tuesday, 17 January 2012 22:14:16 UTC