-
Notifications
You must be signed in to change notification settings - Fork 938
Fail more gracefully when opening IndexedDb fails in Firefox private browsing #5396
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0a5c7c4
Fail more gracefully when opening IndexedDb databases fail in Firefox…
dconeybe 7505243
Add changeset
dconeybe 8524375
Reword error message to not explicitly mention Firefox, since Invalid…
dconeybe 8d34d4a
Merge remote-tracking branch 'origin/master' at 1b33fda40
dconeybe 692c448
Merge remote-tracking branch 'origin/master' at commit 168b87c27
dconeybe 722881a
IndexedDb -> IndexedDB
dconeybe dc38ea4
Remove parentheses around the root error
dconeybe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -326,10 +326,11 @@ export class SimpleDb { | |
reject( | ||
new FirestoreError( | ||
Code.FAILED_PRECONDITION, | ||
'Unable to open an IndexedDb connection; this may be due to running in a ' + | ||
'Firefox private browsing session, in which IndexedDb is not supported ' + | ||
'(https://goo.gle/3ymSNyf): ' + | ||
error | ||
'Unable to open an IndexedDb connection. This could be due to running in a ' + | ||
'private browsing session on a browser whose private browsing sessions do not ' + | ||
'support IndexedDb. (' + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: I think you should move the period after the parenthesis or use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done (changed to ":"). |
||
error + | ||
')' | ||
) | ||
); | ||
} else { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The official spelling seems to be IndexedDB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.