[w3c/ServiceWorker] Lifetime of service workers in relation to dedicated and shared workers (#1119)

My apologies. It was in the back of my mind while working on https://github.com/whatwg/html/pull/2520 and yet I forgot to file an issue and coordinate with you all.

It seems you only have one dependency on "the worker's Documents" which is easily replaced in https://w3c.github.io/ServiceWorker/#selection. I guess you might want to say somewhere that a ServiceWorkerGlobalScope object's owner set is always empty. And then you have to define how it's lifetime differs from dedicated and shared workers as currently it builds upon the same infrastructure: https://html.spec.whatwg.org/#the-worker's-lifetime.

That latter part has always been a problem. Perhaps HTML should instead be changed to limit parts of its text around workers to just dedicated and shared workers. It's not entirely clear to me what the right tradeoff is. Hopefully you all can figure that out.

-- 
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/1119

Received on Friday, 14 April 2017 05:57:42 UTC