Re: [ServiceWorker] spec behavior when ServiceWorkerContainer parent client is dead (#777)

The object is not destroyed, kinda sorta.  Existing spec language assumes that all things leak forever and the browser never cleans anything up.  Clearly that's not reasonable, so in practice browsers by and large implement different things which are not interoperable.  Sometimes browsers are not internally consistent (e.g. treating removing an iframe from the DOM tree one way in terms of what happens to the Window currently in it and navigating the iframe in a different way, and closing a toplevel tab in yet a third way).

Oh, and there may be some actual web compat constraints around this stuff for some APIs.  I seem to recall that when Gecko tried turning off scripts altogether in a Window whose iframe has been removed from the DOM we ran into web compat issues.

None of that helps you with your current situation, of course...

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/777#issuecomment-153935170

Received on Thursday, 5 November 2015 02:37:40 UTC