Note
ამ გვერდზე წვდომა ავტორიზაციას მოითხოვს. შეგიძლიათ სცადოთ შესვლა ან დირექტორიების შეცვლა.
ამ გვერდზე წვდომა ავტორიზაციას მოითხოვს. შეგიძლიათ სცადოთ დირექტორიების შეცვლა.
Allow ServiceWorker to control srcdoc iframes
Supported versions
- On Windows and macOS since 134 or later
- On Android since 140 or later
Description
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.
Supported features
- Can be mandatory: Yes
- Can be recommended: No
- Dynamic Policy Refresh: No - Requires browser restart
- Per Profile: Yes
- Applies to a profile that is signed in with a Microsoft account: No
Data type
- Boolean
Windows information and settings
Group Policy (ADMX) info
- GP unique name: ServiceWorkerToControlSrcdocIframeEnabled
- GP name: Allow ServiceWorker to control srcdoc iframes
- GP path (Mandatory): Administrative Templates/Microsoft Edge
- GP path (Recommended): N/A
- GP ADMX file name: MSEdge.admx
Example value
Enabled
Registry settings
- Path (Mandatory): SOFTWARE\Policies\Microsoft\Edge
- Path (Recommended): N/A
- Value name: ServiceWorkerToControlSrcdocIframeEnabled
- Value type: REG_DWORD
Example registry value
0x00000001
Mac information and settings
- Preference Key name: ServiceWorkerToControlSrcdocIframeEnabled
- Example value:
<true/>
Android information and settings
- Preference Key name: ServiceWorkerToControlSrcdocIframeEnabled
- Example value:
true