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
Describe the bug
When attempting to launch the DevTools window (OpenDevToolsWindow) concurrently with executing a script (ExecuteScript) in a WebView2 Win32 C++ application, the application enters a deadlock state. Neither the DevTools window opens nor the script is executed. This occurs consistently when the two operations are triggered (consecutively, ExecuteScript after OpenDevToolsWindow).
Expected behavior
Both operations should complete successfully: the DevTools window opens, and the script executes without blocking each other.
Actual behavior
The application deadlocks indefinitely. The main UI thread calling waiting for ExecuteScript hangs and so does the webview2 thread calling OpenDevToolsWindow, requiring the application to be terminated forcefully.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
136.0.3240.92
SDK Version
1.0.1661.34
Framework
Win32
Operating System
Windows 10
OS Version
19045.5608
Repro steps
Steps to reproduce
Create a WebView2 environment and controller.
Load a webpage or HTML content into the WebView2 control.
Trigger OpenDevToolsWindow and then right after that ExecuteScript.
Observe that neither action completes: the DevTools window appears empty and transparent, and the script is not executed (left hanging waiting the result from the callback).
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
The issue seems to stem from the fact that in our architechture browser window communicates with the parent window, while the parent is blocked on the script execution waiting for the result.
Making the browser backing window not a child of the main UI window seems to resolve that, though there are still some complications such as the need to manually track parent window position and size,manually closing the window, etc. Basically all the stuff that being the child window handles automatically
Uh oh!
There was an error while loading. Please reload this page.
What happened?
Describe the bug
When attempting to launch the DevTools window (
OpenDevToolsWindow
) concurrently with executing a script (ExecuteScript
) in a WebView2 Win32 C++ application, the application enters a deadlock state. Neither the DevTools window opens nor the script is executed. This occurs consistently when the two operations are triggered (consecutively,ExecuteScript
afterOpenDevToolsWindow
).Expected behavior
Both operations should complete successfully: the DevTools window opens, and the script executes without blocking each other.
Actual behavior
The application deadlocks indefinitely. The main UI thread calling waiting for
ExecuteScript
hangs and so does the webview2 thread callingOpenDevToolsWindow
, requiring the application to be terminated forcefully.Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
136.0.3240.92
SDK Version
1.0.1661.34
Framework
Win32
Operating System
Windows 10
OS Version
19045.5608
Repro steps
Steps to reproduce
OpenDevToolsWindow
and then right after thatExecuteScript
.Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: