eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

LocationListener's "cancel" not effective with Edge, for 3xx redirects

Open benjaminr-ps opened this issue 1 year ago • 0 comments

Describe the bug We have implemented the LocationListener interface, which has to cancel the redirect navigation, once a particular URL should be navigated/redirected to. (For handling a OAuth 2.0/OpenIdConnect login via native browser)

To Reproduce

  1. Implement LocationListener interface, especially "changing" function
  2. Register to Browser object.
  3. Set authorization URL
  4. (Let redirect happen, to login page)
  5. Enter credentials
  6. (Get redirected by Identity Provider)

Expected behavior LocationListener.changing event can interfer the navigation.

Actual behavior LocationListener.changing event is triggered, but browser navigated, already. No chance to cancel the naviation.

Screenshots image

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • [ ] All OS
    • [x] Windows
    • [ ] Linux
    • [ ] macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc) Windows 10 Edge 114.0.1823.67 org.eclipse.swt.win32.win32.x86_64: 3.124.0.v20230523-1044

  2. JRE/JDK version JDK 17.0.7

Workaround (or) Additional context No workaround

benjaminr-ps avatar Jul 12 '23 06:07 benjaminr-ps