MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: WebView2 Initializes fine with default url but not navigating to new url
@Navdeep-ss is already working on this.
Since Apr 10, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.