Re: [ServiceWorker] Workers & SharedWorkers within ServiceWorkers (#678)

> I guess I'm not so confident we can make SharedWorker and Worker function properly with a ServiceWorker parent instead of a document.

Me neither. Shared worker/worker's inherent tying to their list of associated documents doesn't seem to easily fit to the service worker's model. Maybe we can think of the possibility where the SW's controlled clients are added to the shared worker's document list through the SW's invocation of the SharedWorker ctor. But I can hardly think of the case we set the parent of the shared worker to the service worker itself. The lifetime of that parent would be that of the registration of the service worker which won't allow the shared worker to be terminated even if the associated documents are unloaded.

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

Received on Wednesday, 15 April 2015 06:37:52 UTC