Quota for Origin Private File System much too small on Firefox
Categories
(Core :: Storage: Quota Manager, enhancement)
Tracking
()
People
(Reporter: egk10, Unassigned)
Details
Steps to reproduce:
My app requests an Origin Private File System and checks the quota provided with navigator.storage.estimate(). My app (Kiwix JS PWA) needs to be able to store large archives of web content, up to 100GB or more.
Actual results:
Provided quota is never larger than 10GB despite having over a terabyte of free space on the system drive where Firefox is installed. 10GB is a pretty small archive for Kiwix. Even adding three 4GB content archives is not possible in Firefox.
Expected results:
I would expect a much larger quota based on a percentage of free space. In the same app, Chrome offers nearly unlimited quota on a PC, and on Android a much higher quota than Firefox for Android.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Fenix::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
The Bot is wrong. This is about Firefox Desktop, although it ALSO applies to Android. But the quota issue is most serious on Desktop, as users are more likely to download and use very large archives on Desktop systems.
Updated•1 year ago
|
Comment 3•9 months ago
|
||
Opening this issue as an Enhancement
Comment 4•9 months ago
|
||
(In reply to egk10 from comment #0)
I would expect a much larger quota based on a percentage of free space. In the same app, Chrome offers nearly unlimited quota on a PC, and on Android a much higher quota than Firefox for Android.
Can you try navigator.storage.persist()
?
That should give you almost unlimited storage.
See also https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria
(In reply to Jan Varga [:janv] from comment #4)
(In reply to egk10 from comment #0)
I would expect a much larger quota based on a percentage of free space. In the same app, Chrome offers nearly unlimited quota on a PC, and on Android a much higher quota than Firefox for Android.
Can you try
navigator.storage.persist()
?
That should give you almost unlimited storage.
See also https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria
Thank you very much, on Firefox desktop that does indeed massively increase the OPFS storage quota. I just need to test this on Firefox for Android as well, and will report back.
(In reply to Jan Varga [:janv] from comment #4)
I confirm this also works very well in Firefox for Android.
So I would say this issue is fully resolved. For curious people stumbling across this, there appears to be a difference (at the time of writing) in the implementation of OPFS on Chromium vs Firefox, from my testing. On Chromium browsers I have tried, including on Android, permission is automatically denied with no UI if persistence is requested using this navigator.storage.persist()
, but the storage quota granted is always very high nevertheless. For comparison, on a 1TB Android device, I get 562GB remaining storage (from navigator.storage.estimate()
) in a Chromium browser with persistence reported as "denied", and 468GB storage on Firefox with persistence granted.
In any case, as far as this issue is concerned, I believe it can be closed, and many thanks for the information that helped me resolve it.
Description
•