MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]UWP WebView2 Change Source Issue:

Open
#4,249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

In my UWP project:
WebView Source 01 navigate To WebView Source 02, The ChangeUrlButton must be clicked twice, MyWebView Control will only navigate to a new page. The first click of the ChangeUrlButton will not cause any changes to the page.

WebView Source 01 is https://www.yangshipin.cn/#/tv/home?pid=600002475;
WebView Source 02 is https://www.yangshipin.cn/#/tv/home?pid=600002513;

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

120.0.2210.77

SDK Version

1.0.2210.55

Framework

WinUI2/UWP

Operating System

Windows 11, Xbox

OS Version

No response

Repro steps
 <controls:WebView2 x:Name="MyWebView" Source="https://www.yangshipin.cn/#/tv/home?pid=600002475"/>
 <Button x:Name="ChangeUrlButton" Content="Forward" Grid.Row="1" Click="ChangeUrlButton_Click"
          HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>

private void ChangeUrlButton_Click(object sender, RoutedEventArgs e)
{
MyWebView.Source = new Uri(“https://www.yangshipin.cn/#/tv/home?pid=600002513”);
}

Repros in Edge Browser

No

Regression

Don't know

Last working version (if regression)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied UWP/WinUI2 XAML with MyWebView and ChangeUrlButton_Click, using the two listed URLs and the reported WebView2 runtime and SDK versions. Observe whether the first button click updates the page, then compare the behavior with Edge; done means one click navigates from Source 01 to Source 02.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.