Intent to Prototype: Document Policy in Dedicated Workers

13 views
Skip to first unread message

Chromestatus

unread,
12:52 PM (2 hours ago) 12:52 PM
to blin...@chromium.org, moni...@microsoft.com
Contact emails
moni...@microsoft.com

Explainer
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DocumentPolicy/DocumentPolicyInWorkers.md

Specification
https://github.com/whatwg/html/pull/12026

Summary
Enables document-policy in Dedicated Workers. This enables developers to use Document Policy feature, such as performance or security controls in workers, instead of being limited to the main document. By extending policy enforcement to dedicated workers, developers gain more consistent behavior across threads and better control over worker capabilities in complex web applications.

Blink component
Blink

Web Feature ID
Missing feature

Motivation
Dedicated Workers are commonly used to move logic off the main thread, but Document Policy currently applies only to the main document. This creates inconsistent enforcement when code is refactored into workers, and document‑level constraints no longer apply. Extending Document Policy to Dedicated Workers preserves consistent behavior across execution contexts and avoids policy gaps when using workers.

Initial public proposal
https://github.com/WICG/js-self-profiling/issues/33

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/450845903

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6242687411945472?gate=5163290558857216

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages