3 ms·
> Other problems include "Indexed DB is not available in private browsing mode", how are people supposed to build offline webapps when the applications can easi
by ars 15y ago
> Other problems include "Indexed DB is not available in private browsing mode", how are people supposed to build offline webapps when the applications can easily be prevented from accessing their own data?
I think you are confusing private browsing with offline mode. Private browser is when the user specifically doesn't want the application to have any access to previously stored data, and doesn't want the application to store anything either.
- daleharvey 15y agoI wasnt confusing private browsing / offline mode, and I do understand that private mode ensures that data is temporal, but disabling the feature, instead of just cleaning it up when the use leaves private mode, just means another edge case for developers to have to handle, or for them to just ignore private mode, which doesnt make sense for a lot of 'desktop' like apps in the browser
- ars 15y agoAre you saying that in private mode you can't use index db at all? If so, then yes I agree with you.
- daleharvey 15y agoThat is what the mozilla documentation suggests @ https://developer.mozilla.org/en/IndexedDB/Using_IndexedDB https://developer.mozilla.org/en/IndexedDB/Using_IndexedDB "Obviously, browsers do not want to allow some advertising network or malicious website to pollute your computer, so browsers prompt the user the first time any given web app attempts to open an IndexedDB storage. The user can choose to allow or deny access. Also, IndexedDB is completely disabled in the privacy modes of browsers (Private Browsing mode for Firefox and Incognito mode for Chrome). The whole point of private browsing is to leave no footprints, so attempting to open a database fails while in this mode." Testing it in chrome it looks like it is working fine, I should know better than to trust the docs :)