Crash Caused by Re-Entrancy Due to Call to m_coreWebViewController.IsVisible(...) #10305
Labels
area-WebView
bug
Something isn't working
needs-triage
Issue needs to be triaged by the area owners
team-Controls
Issue for the Controls team
Describe the bug
When using WebView2 from XAML, there is an intermittent crash due to re-entrancy. This results when calling CoreWebView2Controller::IsVisible, which calls ShowWindow, which pumps messages.
Steps to reproduce the bug
I don't have a minimal repro, but can share the relevant part of the stack:
Per @codendone, the fix here is to add a
PauseNewDispatch
around the call tom_coreWebViewController.IsVisible(...)
.Expected behavior
The application should not crash.
Screenshots
No response
NuGet package version
None
Windows version
Windows 11 (23H2): Build 22631
Additional context
No response
The text was updated successfully, but these errors were encountered: