MyIPCam for IP cameras 的评价
MyIPCam for IP cameras 作者: Denfllow
Ben 的评价
评分 2 / 5
来自 Ben,7 年前I 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.
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.
开发者回应
发布于 7 年前Thanks 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. >>
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. >>