dotnet/maui

WebView NavigationEvent is NewPage for Back or Forward

Open

#9,875 opened on Sep 2, 2022

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C# (1,951 forks)batch import
area-controls-webviewgood first issuepartner/syncfusionplatform/windowss/triageds/verifiedt/bug

Repository metrics

Stars
 (23,245 stars)
PR merge metrics
 (Avg merge 47d 9h) (248 merged PRs in 30d)

Description

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

Contributor guide