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.
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.