Skip to content

Commit a2ab3bc

Browse files
authored
Add edge-webview-unique-window-class in "wv2 browser flags" (#3842)
* add edge-webview-unique-window-class * better wording * without path details * rewrite "window class collision crash" * a suffix of
1 parent 7bc72d5 commit a2ab3bc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

microsoft-edge/webview2/concepts/webview-features-flags.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: msedgedevrel
66
ms.topic: article
77
ms.service: microsoft-edge
88
ms.subservice: webview
9-
ms.date: 05/21/2026
9+
ms.date: 06/24/2026
1010
---
1111
# WebView2 browser flags
1212
<!-- lexicon:
@@ -94,16 +94,17 @@ If the flag takes a value other than true|false, give an example. -->
9494
| `disk-cache-size` | Forces the maximum disk space to be used by the disk cache, in bytes. |
9595
| `do-not-de-elevate` | Prevents de-elevation of the WebView2 on launch. Used after de-elevating, to prevent infinite loops. |
9696
| `edge-webview-debugging-script` | Runs `PostWebMessage` script asynchronously. |
97+
| `edge-webview-disable-interactive-dragging` | Disables pointer events and focus events from occurring on elements that have the `--app-region: drag` attribute. If this flag isn't set, drag elements are interactive by default. |
9798
| `edge-webview-enable-mojo-ipcz` | Enables MojoIpcz (mojo-ipcz) for apps that use WebView2. |
99+
| `edge-webview-force-personal-context` | Forces Edge WebView browser processes to run in WIP personal context. |
98100
| `edge-webview-foreground-boost-opt-in` | Opts-in to foreground boost. |
99101
| `edge-webview-foreground-boost-opt-out` | Opts-out of foreground boost. |
100-
| `edge-webview-force-personal-context` | Forces Edge WebView browser processes to run in WIP personal context. |
101102
| `edge-webview-interactive-dragging` | Enables pointer events and focus events to occur on elements that have the `--app-region: drag` attribute. Drag elements are interactive by default. |
102-
| `edge-webview-disable-interactive-dragging` | Disables pointer events and focus events from occurring on elements that have the `--app-region: drag` attribute. If this flag isn't set, drag elements are interactive by default. |
103103
| `edge-webview-is-background` | Indicates that WebView is being launched in the background. |
104104
| `edge-webview-no-dpi-workaround` | Disables the "DPI awareness app compatibility shim" workaround, which launches Edge WebView browser process via a shell, so that the process doesn't inherit the "app compat" shim. |
105105
| `edge-webview-run-with-package-id` | Runs WebView processes with a package identity (package ID) for a bridged Desktop app. |
106106
| `edge-webview-run-without-package-id` | Runs WebView processes without a package identity (package ID) for a bridged Desktop app. |
107+
| `edge-webview-unique-window-class` | Makes WebView2 register module-specific window classes by automatically appending a suffix that's derived from the client module's file name, without path or extension details. For example, for the file name `EmbeddedBrowserWebView.dll`, a suffix of `EmbeddedBrowserWebView` is appended to `Chrome_WidgetWin_0`, forming `Chrome_WidgetWin_0_EmbeddedBrowserWebView`. Enable this flag, to avoid a crash that can occur when different versions of WebView2 and Chromium Embedded Framework (CEF) coexist in the same process and attempt to interact with windows that share the same class. |
107108
| `embedded-browser-webview-dpi-awareness` | Sets the DPI awareness level of the server-side processes. |
108109
| `enable-aggressive-domstorage-flushing` | Enables aggressive flushing of DOM Storage, to minimize data loss. |
109110
| `enable-experimental-web-platform-features` | Enables Web Platform features that are in development. |

0 commit comments

Comments
 (0)