You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The https://bsky.social/oauth/authorize page loads in with a response header
cross-origin-opener-policy: same-origin
which prevents the window that opened it from being able to communicate with it in any way. This destroys the window's window.opener and prevents the window that opened it from being able to detect if the popup was closed prematurely, among other things.
popup.closed immediately reports true, even while the popup window remains opened. popup.opener is also set to null when it should ideally reference the window that opened it.
This could be fixed by simply omitting the Cross-Origin-Opener-Policy header.
Details
Operating system: macOS Sonoma Version 14.5 (23F79)
The standard Google OAuth window (https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?...) does not set this same header. Instead it only sets violations to be reported:
Describe the bug
The
https://bsky.social/oauth/authorize
page loads in with a response headerwhich prevents the window that opened it from being able to communicate with it in any way. This destroys the window's
window.opener
and prevents the window that opened it from being able to detect if the popup was closed prematurely, among other things.To Reproduce
Steps to reproduce the behavior:
Expected behavior
popup.closed
immediately reportstrue
, even while the popup window remains opened.popup.opener
is also set to null when it should ideally reference the window that opened it.This could be fixed by simply omitting the Cross-Origin-Opener-Policy header.
Details
Additional context
The standard Google OAuth window (
https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?...
) does not set this same header. Instead it only sets violations to be reported:The text was updated successfully, but these errors were encountered: