Event loops in navigated-away-from windows

Boris Zbarsky bzbarsky at mit.edu
Sat Sep 27 08:57:48 PDT 2014


On 9/27/14, 9:52 AM, Mark S. Miller wrote:
> What happens if someone runs
>
>      (function f() {setImmediate(f);})();
>
> in a web page?

You get into 
https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/setImmediate/Overview.html#processingmodel 
step 5, which waits forever (modulo back/forward caches) because the 
document is not fully active.

-Boris


More information about the es-discuss mailing list