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

[Problem/Bug]UWP WebView2 Change Source Issue: #4249

Open
BlueCapo opened this issue Dec 20, 2023 · 0 comments
Open

[Problem/Bug]UWP WebView2 Change Source Issue: #4249

BlueCapo opened this issue Dec 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@BlueCapo
Copy link

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

@BlueCapo BlueCapo added the bug Something isn't working label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants