Support Service Worker APIs from Dedicated Workers
- Category
- Service Worker
- Type
- Chromium catches up
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: https://results.web-platform-tests.org/results/service-workers/idlharness.https.any.worker.html
Summary
Adds support for using navigator.serviceWorker and all related Service Worker APIs from within the context of Dedicated Workers. Currently in Chromium the Service Worker APIs are only available from the document context which does not match other browsers nor the spec. Supporting Service Worker APIs in Dedicated Workers improves interop and means it is easier to have more interaction with your Service Worker without impacting the performance of your document thread.
Standards & signals
- Firefox: Shipped/Shipping
- Safari: Shipped/Shipping
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/40364838
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=service-workers%2Fidlharness
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Support%20Service%20Worker%20APIs%20from%20Dedicated%20Workers
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Support%20Service%20Worker%20APIs%20from%20Dedicated%20Workers
- Baseline status: https://webstatus.dev/?q=Support%20Service%20Worker%20APIs%20from%20Dedicated%20Workers