dotnet/maui

WebView NavigationEvent is NewPage for Back or Forward

Open

#9875 aperta il 2 set 2022

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C# (1951 fork)batch import
area-controls-webviewgood first issuepartner/syncfusionplatform/windowss/triageds/verifiedt/bug

Metriche repository

Star
 (23.245 star)
Metriche merge PR
 (Merge medio 47g 9h) (248 PR mergiate in 30 g)

Descrizione

Description

WebNavigatingEventArgs.NavigationEvent is NewPage when navigating Back or Forward, instead of Back or Forward.

Steps to Reproduce

Add breakpoint on the following line in MainPage.xaml.cs

if (e.NavigationEvent == WebNavigationEvent.Back || e.NavigationEvent == WebNavigationEvent.Forward)

Start App.

Choose "Load Html" from Picker.

Right-click in WebView. Choose "Back". WebNavigatingEventArgs.NavigationEvent is NewPage.

Right-click in WebView. Choose "Forward". WebNavigatingEventArgs.NavigationEvent is NewPage.

Link to public reproduction project repository

https://github.com/bobahop/MauiBugReport

Version with bug

6.0.400

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net6.0-windows10.0.19041.0

Did you find any workaround?

No response

Relevant log output

No response

Guida contributor