← Back to release summary

SharedWorker script inherit controller for blob script URL

Category
Service Worker
Type
Chromium catches up
Status
In developer trial (Behind a flag) (Chrome 140)
Intent stage
None

Summary

According to [Worker client case](https://w3c.github.io/ServiceWorker/#control-and-use-worker-client) (github), 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. An enterprise policy [SharedWorkerBlobURLFixEnabled](https://chromeenterprise.google/policies/#SharedWorkerBlobURLFixEnabled) is available to control this feature.

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

View on chromestatus.com