dotnet/maui

WebView NavigationEvent is NewPage for Back or Forward

Open

#9 875 ouverte le 2 sept. 2022

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)C# (1 951 forks)batch import
area-controls-webviewgood first issuepartner/syncfusionplatform/windowss/triageds/verifiedt/bug

Métriques du dépôt

Stars
 (23 245 stars)
Métriques de merge PR
 (Merge moyen 47j 9h) (248 PRs mergées en 30 j)

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

Guide contributeur