We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b33fda + 8524375 commit ceabb8fCopy full SHA for ceabb8f
.changeset/brown-dog-twirl.md
@@ -0,0 +1,5 @@
1
+---
2
+"@firebase/firestore": patch
3
4
+
5
+Improved the error handling when opening IndexedDb fails in a Firefox private browsing session.
packages/firestore/src/local/simple_db.ts
@@ -322,6 +322,17 @@ export class SimpleDb {
322
'data for your app to start fresh.'
323
)
324
);
325
+ } else if (error.name === 'InvalidStateError') {
326
+ reject(
327
+ new FirestoreError(
328
+ Code.FAILED_PRECONDITION,
329
+ 'Unable to open an IndexedDb connection. This could be due to running in a ' +
330
+ 'private browsing session on a browser whose private browsing sessions do not ' +
331
+ 'support IndexedDb. (' +
332
+ error +
333
+ ')'
334
+ )
335
+ );
336
} else {
337
reject(new IndexedDbTransactionError(action, error));
338
}
0 commit comments