client-js
client-js copied to clipboard
"target: popup" (etc) demos don't work in current Chromium
- Visit https://fmv99.csb.app/
- 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.
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 ?
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.