dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.27k stars 1.76k forks source link

Webview Navigating Cancel = true request is still send on WinUI #22678

Open moctechno opened 6 months ago

moctechno commented 6 months ago

Description

In our app we communicate with our RestApi and perform a authentication using OIDC. To do this, we call an endpoint with the webview (webview.Source = endpoint url), which redirects us to the login page. After entering the data, we intercept the redirect using the navigating event and set cancel = true. The redirect request is not sent on iOS and Android. But with Windows (WinUI) it is send to our endpoint. It looks like the navigation is aborted but the request is still sent. Intercepting the NavigationStarting event on the Webview2 or CoreWebView2 didn't help either.

It worked create on Xamarin

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 6 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.