-
Notifications
You must be signed in to change notification settings - Fork 927
Remote config throws error in Firefox private browsing mode #2373
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
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Thanks for your report. I was able to replicate this. I'll confirm internally to see if this is an intended behavior or bug (b/144839642), and I'll let you know once I have an update. |
I forgot to mention that it works fine in Chrome private mode. |
According to https://bugzilla.mozilla.org/show_bug.cgi?id=781982, indexeddb doesn't work in Firefox private mode and Remote config needs it to work. The good news is that Firefox is working on enabling indexeddb in the private mode - https://bugzilla.mozilla.org/show_bug.cgi?id=1562669. For now, if you have any way to detect the private mode, I'd suggest to do that and NOT initialize remote config if private mode is detected. I will close the issue for now. |
Alright, probably then similar reason with IE11/Edge private mode. Another problem is that this promise doesn't return anything when the error occurs: firebase.remoteConfig().fetchAndActivate()
.then((res) => {
// This is not printed
console.log(res)
})
.catch((err) => {
// This is not printed
console.error(err)
})
.finally(() => {
// This is not printed
console.log('finally')
}) Is there some other way of "handling" this error? |
Ah, good catch! Once #2381 is merged and released, you will be able to catch the error. For now, are you able to detect the private mode and not initiate RC at all? |
Thank you. Great news that you have already fixed this. |
Describe your environment
Describe the problem
Remote config throws error in Firefox (possibly also related problem in IE 11 and Edge) private browsing mode.
Steps to reproduce:
Load a web app that uses remote config in Firefox private browsing mode.
Relevant Code:
The text was updated successfully, but these errors were encountered: