client-js icon indicating copy to clipboard operation
client-js copied to clipboard

"target: popup" (etc) demos don't work in current Chromium

Open jmandel opened this issue 2 years ago • 2 comments

  1. Visit https://fmv99.csb.app/
  2. Click "Authorize in a popup window"

What's expected: a new window or tab opens onto the authz endpoint What happens: the main window redirects to the authz endpoint

This appears to happen when window.open is called in a context where no user event has occurred. One straightforward fix is to add an <button>Begin Authorization</button> and trigger smart.authorize as a result of clicking that button.

jmandel avatar Mar 17 '23 14:03 jmandel

Seems to work fine for me in Chrome/Mac.

  • What is the Chromium version?
  • Is that on Linux?
  • Do you have popups enabled for https://fmv99.csb.app ?

vlad-ignatov avatar Mar 17 '23 14:03 vlad-ignatov

Chromium 109 on Linux. I'm not prompted to enable pop-ups. Or if I am, the UX is too challenging.

For a demonstration, I think having a no nonsense button that works consistently would be okay.

jmandel avatar Mar 17 '23 15:03 jmandel