← 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

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

View on chromestatus.com