Policy
Allow ServiceWorker to control srcdoc iframes
Microsoft Edge
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows7
https://github.com/w3c/ServiceWorker/issues/765 asks srcdoc iframe with the "allow-same-origin" sandbox attribute to be under ServiceWorker control. By default (if left unset) or when set to Enabled, Microsoft Edge makes srcdoc iframes with "allow-same-origin" sandbox attributes to be under ServiceWorker control. Setting the policy to Disabled prevents ServiceWorker control over srcdoc iframes. This policy is temporary and planned for deprecation in 2026.
Internal name
ServiceWorkerToControlSrcdocIframeEnabled
Policy ID
4109e36d334d
Elements
0
Registry values
How enabled and disabled states update the registry.
| Scope | Registry location | Type | Enabled value | Disabled value | Copy |
|---|---|---|---|---|---|
Path Software\Policies\Microsoft\Edge Value name ServiceWorkerToControlSrcdocIframeEnabled | REG_DWORD | HKLM 1 HKCU 1 | HKLM 0 HKCU 0 |
Registry location
Path
Software\Policies\Microsoft\Edge
Value name
ServiceWorkerToControlSrcdocIframeEnabled
Hive
HKLM
Enabled value
1
Disabled value
0
Hive
HKCU
Enabled value
1
Disabled value
0
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.