Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView2 reports navigation failure for URLs with non-Western characters despite successful page load #10339

Open
praveenkumarkarunanithi opened this issue Feb 11, 2025 · 0 comments
Labels
area-WebView bug Something isn't working

Comments

@praveenkumarkarunanithi

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

  1. Download and open the attached WinUI 3 sample project in Visual Studio 2022. winui3.zip
  2. Build and run the application.
  3. Observe that the WebView2 control loads and displays the webpage correctly.
  4. Check the Output window in Visual Studio (View -> Output or Ctrl+Alt+O) and select "Debug" in the dropdown.
  5. 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

Image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants