You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/IsEnhancedSecurityModeEnabled.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,24 +7,24 @@ Enhanced Security Mode (ESM) is a Microsoft Edge security feature that reduces t
7
7
8
8
In WebView2, ESM is off by default to avoid performance impact. Host applications can enable ESM for stricter security when rendering untrusted or sensitive content. While this improves security, it may reduce JavaScript performance.
9
9
10
-
In Microsoft Edge, ESM offers two states:
10
+
In Microsoft Edge, ESM offers two levels:
11
11
12
12
- Balanced – Enabled only for unfamiliar sites based on browser usage patterns.
Unlike Edge browser, WebView2 does not support heuristic-based “Balanced” state. Only two options are available: Off and Strict.
17
+
Unlike Edge browser, WebView2 does not support heuristic-based "Balanced" level. Only two options are available: Off and Strict.
18
18
19
-
Currently, ESM state can only be configured via the `--sdsm-state` browser flag([see for more details](https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/webview-features-flags?tabs=dotnetcsharp)) at environment creation, applying globally to all profiles. There is no flexibility to modify the state at runtime.
19
+
Currently, ESM level can only be configured via the `--sdsm-state` browser flag([see for more details](https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/webview-features-flags?tabs=dotnetcsharp)) at environment creation, applying globally to all profiles. There is no flexibility to modify the level at runtime.
20
20
21
21
This proposal introduces an API to enable or disable ESM and persist the configuration for a WebView2 profile within the user data folder.
Enables or disables Enhanced Security Mode (ESM) for all WebView2 instances sharing the same profile. This property value is persisted for a WebView2 profile in the user data folder. The default value is false.
25
25
26
-
- true: ESM enabled in Strict state: disables JavaScript JIT and applies additional OS protections.
27
-
- false: ESM state is Off.
26
+
- true: ESM enabled in Strict level: disables JavaScript JIT and applies additional OS protections.
27
+
- false: ESM level is Off.
28
28
29
29
Changes apply to future navigations; reload may be required. Enabling ESM improves security but can reduce JavaScript performance.
0 commit comments