-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Private browsing issue in Firefox #26
Comments
A first fix is released in 3.1.3 for browsers like Edge where I'll investigate the cases of browsers where the API are available but not functional. Not sure it will be possible to solve this. |
So, a summary of my tests in private mode : indexedDB
localStorage
Solutions For IE/Edge, fallback to For Firefox, it's an open bug in the browser. It may be resolved soon, and I think this lib can't handle it in the current state. There is the same problem in all other libs managing local storage, and I didn't find any which resolved this issue. I see only two solutions :
For now, users should catch error if they want to manage this case, and encourage Firefox to fix this issue. But if someone knows a good solution, feel free to comment. |
Following my request, the priority of the issue in Firefox bug tracker has been raised, so it may be fixed soon. |
For info, I tried to fix this issue inside the lib, but it seems impossible to do it in a right way. So we have to wait for Firefox to fix this. |
@elkozmon @pinalbhatt @hannesrohde I may have find a workaround for Firefox private browsing issue. Could you test in a real app with v6.1.0-beta.0? |
@cyrilletuzi I just tried it in our app and 6.1.0-beta.0 fixes the issue in Firefox private browsing! Sorry for the late reply and thank you for having a look and fixing the issue! |
@hannesrohde Thanks for testing! I need to investigate another related issue first, and then it will be released in stable. |
@venoby Could you share the code relative to your issue? |
@venoby Also, check with beta.1 first: |
@cyrilletuzi Hi again, yep you are right. It was typo error in my code 🙈 |
Fixed in 6.1. |
For information: after many years, this has finally been fixed in Firefox 115. |
Follow up of comments in #20
IndexedDB
is disabled in private (Firefox, Edge). Same as pouchdb/pouchdb#5641Same goes for localStorage.
The lib should detect these cases and fallback to in-memory database.
Note it just has to avoid errors, local storage is useful for apps, where being in private browsing makes no sense.
Help is welcome for up to date information about browser support of
IndexedDB
andlocalStorage
in private mode, and also for examples of detection for each case. Some seem trivial (like Edge), but some others seem quite difficult and may not be fixable (like Firefox).The text was updated successfully, but these errors were encountered: