File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/firestore " : patch
3
+ ---
4
+
5
+ Improved the error handling when opening IndexedDb fails in a Firefox private browsing session.
Original file line number Diff line number Diff line change @@ -322,6 +322,17 @@ export class SimpleDb {
322
322
'data for your app to start fresh.'
323
323
)
324
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
+ ) ;
325
336
} else {
326
337
reject ( new IndexedDbTransactionError ( action , error ) ) ;
327
338
}
You can’t perform that action at this time.
0 commit comments