Skip to content

iOS Only e.Cancel does not cancel WebView load if Launcher.OpenAsync is awaited #29575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
czuck opened this issue May 19, 2025 · 1 comment
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

Comments

@czuck
Copy link

czuck commented May 19, 2025

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

@czuck czuck added the t/bug Something isn't working label May 19, 2025
@PureWeen PureWeen added this to the Backlog milestone May 19, 2025
@anandhan-rajagopal
Copy link
Contributor

This issue has been verified in Visual Studio Code 1.100.2 with MAUI versions (8.0.100, 9.0.0 & 9.0.70). It can be reproduced on iOS platform.

@anandhan-rajagopal anandhan-rajagopal added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 20, 2025
@vishnumenon2684 vishnumenon2684 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants