iOS Only e.Cancel does not cancel WebView load if Launcher.OpenAsync is awaited #29575
Labels
area-controls-webview
WebView
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/ios
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Description
When calling await Launcher.OpenAsync(url), then returning to the MAUI app, the webview has loaded the page. Remove the await and test again, when returning to the MAUI app the webview has not changed
Steps to Reproduce
Run the test project linked below. Tap the hamburger menu and tap on WebView Cancel This brings up google.
Tap on the Sign In button. This should open the google account page in a new browser. Tap <CleanApp in the upper left to return to the app. The WebView not displays the google account page as well.
Open CustomWebView and remove the word await on line 20. Run the test again. When returning to the WebView toe initial Google search window will still be displayed.
Can be recreated using versions 8.0.3 through 10.0.0-preview.4.25263.4
Link to public reproduction project repository
https://github.com/czuck/MauiTest
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
18.3.1
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: