Event loops in navigated-away-from windows

Boris Zbarsky bzbarsky at mit.edu
Fri Sep 26 19:03:40 PDT 2014


Now that JS is growing an event loop, what should happen to it in 
navigated-away-from windows?

To make this concrete:

1)  Say I have an object that came from such a window and it has an 
Object.observe observer on it that mutates the property being observed. 
  Should this continue to run forever ever after the window is navigated 
away from?

2)  Say someone runs this in a web page:

   (function f() Promise.resolve().then(f))()

what should happen when the user navigates away from that web page and why?

-Boris


More information about the es-discuss mailing list