-
Notifications
You must be signed in to change notification settings - Fork 802
Open
Labels
Description
Describe the bug
When using WebView2 in a WinUI 3 application, the NavigationCompleted event reports a failure (IsSuccess = false) for URLs containing encoded non-Western characters, even though the webpage loads successfully. This inconsistency between the reported navigation status and the actual page load state can lead to incorrect error handling in applications relying on the NavigationCompleted event.
Steps to reproduce the bug
- Download and open the attached WinUI 3 sample project in Visual Studio 2022. winui3.zip
- Build and run the application.
- Observe that the WebView2 control loads and displays the webpage correctly.
- Check the Output window in Visual Studio (View -> Output or Ctrl+Alt+O) and select "Debug" in the dropdown.
- Note that the debug statement logs "Navigation failed with error: Unknown" due to IsSuccess being false in the NavigationCompleted event, even though the webpage loads properly.
Expected behavior
The NavigationCompleted event should have IsSuccess as true since the webpage loads correctly in WebView2.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (23H2): Build 22631
Additional context
No response
Reactions are currently unavailable
