- Rated 2 out of 5by Ben, 6 years agoI had a bit of a fight with this add-on. The local storage will not remember its settings across sessions if the user has Firefox set to make all cookies, session cookies (this affects local storage too) - the Privacy: Keep until I close Firefox, setting is the one.
I think you should be using: browser.storage.local instead of localStorage in an add-on. This gives the storage more 'privilege' and it's a lot less vulnerable.
Besides which, this add-on is crippleware which I think should be made clearer.
Developer responseposted 6 years agoThanks for your review. I'll fix it in the next version.
why it happens:
<< Also in Firefox, you can prevent the browser from clearing local storage on uninstall by visiting "about:config" and setting the following two browser preferences to true: "keepUuidOnUninstall" and "keepStorageOnUninstall". This feature is provided to help developers test their extensions. Extensions themselves are not able to change these preferences.
Although this API is similar to Window.localStorage it is recommended that you don't use Window.localStorage in extension code. Firefox will clear data stored by extensions using the localStorage API in various scenarios where users clear their browsing history and data for privacy reasons, while data saved using the storage.local API will be correctly persisted in these scenarios. >>