← Back to release summary

SharedWorker script inherit controller for blob script URL

Category
Service Worker
Type
No developer-visible change
Status
In developer trial (Behind a flag) (Chrome 124)
Intent stage
None

WPT details: https://wpt.fyi/results/service-workers/service-worker/local-url-inherit-controller.https.html Same-origin blob URL sharedworker should inherit service worker controller. Same-origin blob URL sharedworker should intercept fetch(). The tests ensure a ServiceWorkerController is inherited. Due to crbug.com/40364838, Chromium does not pass the former test.

Summary

According to https://w3c.github.io/ServiceWorker/#control-and-use-worker-client, workers should inherit controllers for the blob URL. However, existing code allows only dedicated workers to inherit the controller, and shared workers do not inherit the controller. This is the fix to make Chromium behavior adjust to the specification.

Motivation

Since the current implementation does not inherit a controller for the blob URLs, the SharedWorker's controller can be different from a controller it made the SharedWorker, and web developers may need to track it manually. Especially, since the behavior is not aligned with the specification, the web developers should implement this workaround for Chromium.

Standards & signals

Ecosystem

View on chromestatus.com