dotnet/maui

WebView NavigationEvent is NewPage for Back or Forward

Open

#9,875 创建于 2022年9月2日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (1,951 fork)batch import
area-controls-webviewgood first issuepartner/syncfusionplatform/windowss/triageds/verifiedt/bug

仓库指标

Star
 (23,245 star)
PR 合并指标
 (平均合并 47天 9小时) (30 天内合并 248 个 PR)

描述

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

贡献者指南