Skip to content

[Problem/Bug]: Consecutive redirects, without chance to cancel in between #5431

@broehl-ptc

Description

@broehl-ptc

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

  1. Implement ICoreWebView2FrameNavigationStartingEventHandler interface
  2. Register to Browser object.
  3. Set authorization URL
  4. (Let redirect happen, to login page of OIDC provider)
  5. Enter credentials
  6. (Get redirected by OIDC provider)
  7. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions