-
Notifications
You must be signed in to change notification settings - Fork 928
v8.0.2 Regression in Firebase Auth: IDBFactory.open() called in an invalid security context #4113
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
Comments
May be related to #2393 where we had to add an async The check logic is a bit convoluted because IndexedDB is quirky, and is here:
If auth needs to run something similar I guess it would have to be copied since auth code is Closure. |
I'm experiencing something similar where I can't use Firebase at all inside an Electron app with custom protocols. I can confirm that it does not work on any version above 8.0.1 so I downgraded to that for now. Error when calling
|
Thanks for reporting. This is being tracked internally at b/174244535 |
Hi everyone, thanks for your patience. @vieira would you mind checking to see if this is fixed for you in |
Hello @samhorlbeck, The issue is no longer present in 8.1.2. Tested again with 8.1.1 (issue present) versus 8.1.2 (issue not present) under same configuration (Safari 13.1.3 with Prevent cross-site tracking). Thanks! |
Awesome, thanks for checking! |
Describe your environment
Describe the problem
When
firebase/auth
is loaded in a cross-domain iframe an error is producedUnhandled Rejection (SecurityError): IDBFactory.open() called in an invalid security context
andonAuthStateChanged
never runs.Downgrading to 8.0.1 solves the issue. I see that there was a change in firebase/auth related with IndexDB in 8.0.2, so I assume that #4059 introduced the regression.
I believe that previously, when it was not possible to use IndexDB for some reason it would fallback to
localStorage
?Let me know if there is any other information we can provide.
The text was updated successfully, but these errors were encountered: