-
Notifications
You must be signed in to change notification settings - Fork 62
Description
What happened?
Status Quo
The webview2 is instantiated by Eclipse SWT project's Browser component.
Use Case
The SWT Browser component is used to implement an OIDC login handler in Eclipse/Java runtime.
Problem
The redirects cannot be canceled via WebView2 API as supposed to be.
In the following issue, the screenshot shows, that "redirect" event is currently debugged, but the Edge/Webview2 browser is already proceeded to the latest redirected URL:
eclipse-platform/eclipse.platform.swt#738
The issue at Eclipse SWT repository got closed already, since it principally works.
But it seems, for redirects in sequence it cannot be "cancelled".
Workaround
Use IE browser component, where redirects can be still cancelled, as expected.
Side Note
The issue is already old, but can be still reproduced today.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
142.0.3595.53
SDK Version
No response
Framework
Other
Operating System
Windows 11
OS Version
26200.6899
Repro steps
- Implement ICoreWebView2FrameNavigationStartingEventHandler interface
- Register to Browser object.
- Set authorization URL
- (Let redirect happen, to login page of OIDC provider)
- Enter credentials
- (Get redirected by OIDC provider)
- Cancel last redirect to OIDC provider
Expected:
The ICoreWebView2FrameNavigationStartingEventHandler is called with each redirect to happen, and to be able to cancel it
Actual:
The redirects happen consecutively, without any chance to interrupt/cancel the redirect.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response