dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.96k stars 1.7k forks source link

WebView NavigationEvent is NewPage for Back or Forward #9875

Open bobahop opened 1 year ago

bobahop commented 1 year ago

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

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

homeyf commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 2.0. Can repro on windows platform with sample project. https://github.com/bobahop/MauiBugReport image