mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
653 stars 73 forks source link

SharedWorker script inherit controller for blob script URL #1113

Open yoshisatoyanagisawa opened 3 days ago

yoshisatoyanagisawa commented 3 days ago

Request for Mozilla Position on an Emerging Web Specification

Other information

According to the specification, SharedWorker is expected to inherit a ServiceWorker controller if a blob URL is used as a script URL:

Window clients and worker clients with a blob URL can inherit the active service worker of their creator document or owner, but if the request's origin is not the same as the origin of their creator document or owner, the active service worker is set to null.

Firefox fails for the following WPT that ensures the behavior: https://wpt.fyi/results/service-workers/service-worker/local-url-inherit-controller.https.html

Can I ask the Mozilla's position on the behavior? i.e. inheriting a ServiceWorker controller of a creator/owner if a blob URL is used as a SharedWorker script URL.

asutherland commented 3 days ago

I think the main question would be how https://github.com/w3c/FileAPI/issues/153 interacts with this case given that the SharedWorker would be in a different agent cluster from the global that minted the blob URL.