Skip to content

[Problem/Bug]: WebView2 Initializes fine with default url but not navigating to new url #5186

Open
@soojungk417

Description

@soojungk417

What happened?

Hi, I have a WPF tool that uses webview2 to load a url, but I found that it works on someone's computer and doesn't work on another.
These are some facts:

  • I'm using WebView2 134.0.3124.93 and I confirmed this is installed on those computers that won't work.
  • Confirmed the default url I added as Source of wpf shows up and it says WebView is initialized(they both show value from Environment.BrowserVersionString), but it doesn't navigate to the new url that gets fed after initialized.
  • Confirmed it's not related to Windows 10 vs 11.

What could be a potential reason?

Thanks!

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

134.0.3124.93

SDK Version

1.0.3124.44

Framework

WPF

Operating System

Windows 10

OS Version

No response

Repro steps

MainWindow.xaml has this
<wpf:WebView2 x:Name="webView" HorizontalAlignment="Stretch" Source="https://www.microsoft.com"/>

In MainWIndow.xaml.cs, it adds source url, which has correct value.
webView.Source = new Uri(_url);

Problem is this only happens on a couple of computers and can't seem to find what the common issue is between those computers.

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions