Event loops in navigated-away-from windows

Boris Zbarsky bzbarsky at mit.edu
Sat Sep 27 09:00:36 PDT 2014


On 9/27/14, 10:02 AM, Mark S. Miller wrote:
> My intent was not to refer to a nonstd api. Instead, what happens with
>
>      (function f() {setTimeout(f, 0);})();
>
> in a web page that is navigated away from?

See 
https://html.spec.whatwg.org/multipage/webappapis.html#processing-model-9 step 
1 and also, if that were not enough, 
https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowtimers-settimeout 
step 11, both of which refer to the concept of "fully active" documents.

-Boris


More information about the es-discuss mailing list