w3c / w3c/ServiceWorker

Create Service Worker from Blob/String that does not persist and auto claims for testing

Open
#1,642 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
3.6k
Forks
324
Avg merge
14d 22h
Merged PRs (30d)
1

Description

I want to pick up https://github.com/w3c/ServiceWorker/issues/578 again
with some addition i would like for cases like codepens and gists that i can register a service worker via blob/url that auto claims
https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim

and does not persist a page refresh. so it gets only used on run time once like any normal script but it can use the service Worker Apis

Does any one see any security blockers for that?

my Conclusion

The only bad thing is the long time effect as in my design decision is no long time effect while it allow to run one off tests should be fine

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked ServiceWorker issue #578 and the MDN Clients.claim() documentation. Clarify the proposed Blob/String registration lifecycle, non-persistence across refreshes, automatic claiming, and security constraints from the discussion. Done would require an agreed, implementable specification rather than a localized code change.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.