-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Firefox] Use indexedDB instead of browser.local.storage for cached assets #2925
Comments
I verified that the (yet-another) migration work in the following cases: When installing webext-hybrid the first time:
When installing webext-hybrid or webext (when legacy storage had already been migrated):
I would like this to be tested by other people before I push 1.13.11rc1 to the dev channel of AMO. I did not test on Firefox for Android. |
Works fine on Firefox 56. However won't this break for private browsing as https://bugzilla.mozilla.org/show_bug.cgi?id=1313401 is not yet fixed. |
I tried using a "Private Window" yesterday and it worked fine. However now I just tried the full "Private Browser" mode in preferences, and it does not work, uBO is not allowed to use indexedDB at all. Consequences of this:
Concretely, this will lead to longer load time for uBO, and with obsolete packaged filter lists, when launching Firefox in full privacy mode. But I have no choice, as per Firefox devs: https://bugzilla.mozilla.org/show_bug.cgi?id=1371255. |
Is this also a problem in uMatrix. |
Ray... Is the new IDB now in "C:\Users\garys\AppData\Roaming\Mozilla\Firefox\Profiles\hrzfisk4.gary\storage\default\moz-extension+++41ac9a13-9e45-474b-8948-32f7217fe7f8"? If so is "C:\Users\garys\AppData\Roaming\Mozilla\Firefox\Profiles\hrzfisk4.gary\browser-extension-data\[email protected]\storage.js" replaced by the above? The storage.js file is still being updated. I'm using the pure WE version of uBO |
Yes, my observation is that the indexedDB storage is at a location like As explained above in the ASCII drawing, cached assets (large chunks of data) are in the indexedDB, everything else (all user settings which can be exported in a backup file) is still in |
By the way, for reference purpose, my |
Another note about |
Thanks for all the good info Ray. I too notice that storage.js is a lot smaller now. |
Issue first reported here: #2684 (comment).
Related bugzilla issue: "Very bad memory efficiency of browser.storage.local".
As per Firefox devs, one should not use browser.storage.local API to store large amount of data, but rather indexedDB should be used.
The change here will also seamlessly migrate all cache-related entries from browser.storage.local to indexedDB.
The text was updated successfully, but these errors were encountered: