File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 2 files changed +15
-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,16 @@ 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
+ ) ;
325
335
} else {
326
336
reject ( new IndexedDbTransactionError ( action , error ) ) ;
327
337
}
You can’t perform that action at this time.
0 commit comments