MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: Consecutive redirects, without chance to cancel in between
@dhveerap is already working on this.
Since Nov 12, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
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:
https://github.com/eclipse-platform/eclipse.platform.swt/issues/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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.