Allow ServiceWorker to control srcdoc iframes
- Policy ID
- ServiceWorkerToControlSrcdocIframeEnabled
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Windows 7 or later
- Source
- Google Chrome Policy Templates (version 156.0.8078.80)
- Category
- Google › Google Chrome
Description
https://github.com/w3c/ServiceWorker/issues/765 asks srcdoc iframe with
the "allow-same-origin" sandbox attribute to be under ServiceWorker control.
Setting the policy to Enabled or leaving it unset means
Google Chrome makes srcdoc iframes
with "allow-same-origin" sandbox attributes to be under ServiceWorker control.
Setting the policy to Disabled leaves the srcdoc iframe not controlled by
ServiceWorker.
This policy is intended to be temporary and will be removed in 2026.
Registry
ComputerHKEY_LOCAL_MACHINE
- ServiceWorkerToControlSrcdocIframeEnabledREG_DWORD
UserHKEY_CURRENT_USER
- ServiceWorkerToControlSrcdocIframeEnabledREG_DWORD