Re: [w3c/ServiceWorker] Should a service worker be allowed to register new service workers? (#1117)

I agree it would be prudent to restrict `register()` to contexts rooted by an open window.  So only permit it in worker contexts such that:

* a dedicated Worker created by a Window
* a dedicated Worker created by a parent Worker that is ultimately owned by a Window
* a SharedWorker with a Window attached

I think blocking `register()` in ServiceWorker would be reasonable for now.  We can always open it later if necessary.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1117#issuecomment-320700328

Received on Monday, 7 August 2017 15:44:29 UTC