maui icon indicating copy to clipboard operation
maui copied to clipboard

Webview events fire different on iOS and Android

Open Larhei opened this issue 10 months ago • 2 comments

Description

When loading a Page containing a Webview with xaml inline HtmlWebViewSource, the Webview fires different events depending on the platform you are on

On Android only Loaded Events fires On IOS Navigating and Loaded is fired, but no Navigated.

When changing the source after Webview is loaded. On both platforms Navigating and Navigated are called.

Steps to Reproduce

  1. Checkout Repro
  2. Run on Android
  3. Run on iOS
  4. Compare Events

Link to public reproduction project repository

https://github.com/Larhei/Maui-Issues/tree/main/LayoutCycle

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Larhei avatar Apr 12 '24 14:04 Larhei

Verified on VS 17.10.0 Preview 3.0(8.0.20). Repro on Android 14.0-API34 and iOS 17.2, not repro on Windows 11 with below Project: LayoutCycle.zip

XamlTest avatar Apr 15 '24 09:04 XamlTest

In Windows, with the WebView, if the displayed page redirect you to another page - when you click a button, for example - the Navigated event is not fired. In Android and iOS that event is fired for a redirect.

Auto72 avatar Apr 15 '24 13:04 Auto72