maui
maui copied to clipboard
Webview events fire different on iOS and Android
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
- Checkout Repro
- Run on Android
- Run on iOS
- 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
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
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.