Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-Origin-Opener-Policy policy would block the window.closed call. #8213

Closed
dreamjet31 opened this issue May 2, 2024 · 5 comments
Closed

Comments

@dreamjet31
Copy link

dreamjet31 commented May 2, 2024

Operating System

Windows 11

Browser Version

124.0.6367.118

Firebase SDK Version

^10.11.1

Firebase SDK Product:

Auth

Describe your project's tooling

React bootstrap app with vite

Describe the problem

I have implemented signIn/signUp using firebase auth. When I try to signIn with email and password, there are no errors consoled. When I try to signInWithGoogle, it was successfully signed in, but it consoled

Cross-Origin-Opener-Policy policy would block the window.closed call.
firebase_auth.js?v=7506f255:6655 

Steps and code to reproduce issue

Here is specific code part in firebase_auth.js that shows the console error:

pollUserCancellation() {
    const poll = () => {
      var _a, _b;
      if ((_b = (_a = this.authWindow) === null || _a === void 0 ? void 0 : _a.window) === null || _b === void 0 ? void 0 : _b.closed) {
        this.pollId = window.setTimeout(
          () => {
            this.pollId = null;
            this.reject(_createError(
              this.auth,
              "popup-closed-by-user"
              /* AuthErrorCode.POPUP_CLOSED_BY_USER */
            ));
          },
          8e3
          /* _Timeout.AUTH_EVENT */
        );
        return;
      }
      this.pollId = window.setTimeout(poll, _POLL_WINDOW_CLOSE_TIMEOUT.get());
    };
    poll();
  }
@dreamjet31 dreamjet31 added new A new issue that hasn't be categoirzed as question, bug or feature request question labels May 2, 2024
@jbalidiong jbalidiong added needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels May 2, 2024
@jbalidiong
Copy link
Contributor

Hi @flurryunicorn, thanks for reaching out to us. I’m able to reproduce the error you mentioned. I’ll raise this to our engineering team to see what we can do here and I’ll update this thread if I have any information to share.

@dreamjet31
Copy link
Author

thanks, let me know if you have any update about that issue @jbalidiong

@bhparijat
Copy link
Contributor

Hi, this blog post talks about workaround for getting rid of the error https://stackoverflow.com/questions/76446840/cross-origin-opener-policy-policy-would-block-the-window-closed-call-error-while

@google-oss-bot
Copy link
Contributor

Hey @flurryunicorn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@flurryunicorn if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants