Нотатка
Доступ до цієї сторінки потребує авторизації. Можна спробувати ввійти або змінити каталоги.
Доступ до цієї сторінки потребує авторизації. Можна спробувати змінити каталоги.
Allow ServiceWorker to control srcdoc iframes
Supported versions
- Windows: ≥ 134
- macOS: ≥ 134
- Android: ≥ 140
- iOS: Not supported
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