← Back to release summary

Dedicated workers as service worker clients

Category
Service Worker
Type
New or changed feature
Status
Enabled by default (Chrome Enabled by default)
Intent stage
Prepare to ship

WPT details: https://wpt.fyi/results/html/cross-origin-embedder-policy/dedicated-worker-cache-storage.https.html https://wpt.fyi/results/service-workers/service-worker/clients-matchall-blob-url-worker.https.html https://wpt.fyi/results/service-workers/service-worker/clients-get-client-types.https.html https://wpt.fyi/results/service-workers/service-worker/client-url-of-blob-url-worker.https.html https://wpt.fyi/results/service-workers/service-worker/dedicated-worker-service-worker-interception.https.html

Summary

New behaviors by this feature: 1) dedicated workers will be real service worker clients and they will be exposed via the Clients API. `Clients.matchAll({‘type’: ‘worker’})` will include dedicated workers. The ‘type’ option is an opt-in option and `Clients.matchAll()` returns only window clients by default. 2) dedicated workers will be controlled by their own service worker matched with the dedicated worker script URL.

Motivation

New behaviors are aligned with the spec.

Standards & signals

Ecosystem

View on chromestatus.com