Lifetime of service workers in relation to dedicated and shared workers
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 3.6k
- Forks
- 324
- Avg merge
- 14d 22h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Service Worker selection section and HTML's “the worker's lifetime” section, along with the linked HTML pull request. Determine how ServiceWorkerGlobalScope owner sets and lifetimes should differ from dedicated and shared workers; done means the relevant specification text and tradeoff are agreed and updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100