Closed
Bug 461684
Opened 17 years ago
Closed 13 years ago
Raise localStorage quota to 10MB per site
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: bedney, Unassigned)
References
Details
(Whiteboard: [needs owner's decision])
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3
IE8b2 allows localStorage to store 10MB of data per site.
The older 'globalStorage' capability of Mozilla had a 5MB per site storage limit, as set by the 'dom.storage.default_quota' preference property. I am assuming that the localStorage capability will have that 5MB limit as well.
I am proposing to raise that to 10MB per site. Web applications are getting more complex and more aggressive in their use of localStorage for caching.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Updated•16 years ago
|
Version: unspecified → Trunk
Comment 1•16 years ago
|
||
Indeed, the default is 5 MB:
http://mxr.mozilla.org/mozilla-central/search?string=default_quota
http://mxr.mozilla.org/mozilla-central/source/dom/src/storage/nsDOMStorage.cpp#72
Although, per bug 397416 for offline applications the quota is much higher by default.
Confirming as a valid request.
Microsoft indeed says "Storage size is calculated as the total length of all key names and values, and a single storage area can contain up to 10 million bytes." http://msdn.microsoft.com/en-us/library/cc197062%28VS.85%29.aspx#_quota
Couldn't find information on other browsers. Webkit has this (open currently) bug: https://bugs.webkit.org/show_bug.cgi?id=22765, but it doesn't mean anything.
Status: UNCONFIRMED → NEW
Component: General → DOM: Mozilla Extensions
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → general
Updated•16 years ago
|
Whiteboard: [needs owner's decision]
Comment 2•16 years ago
|
||
Ah, and http://dev.w3.org/html5/webstorage/#disk-space says (as of 2009-09-10):
"A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future."
Comment 3•16 years ago
|
||
and for mobile browsers 10MB is unreasonable. At least it is configurable, but we should be aware of this in any tests and settings that change without the Fennec guys knowing so.
Comment 4•15 years ago
|
||
(In reply to comment #3)
But it still may be needed. I think we should go about this in that when the limit is reached, a dialog box comes up asking to user if they want to allow the current site to use more storage. In this dialog could be a range slider starting at the current limit and going up to the max storage space. There could also be a checkbox labeled "do not limit the storage space for {website}". An offline-enabled image editor webapp and an offline-enabled email webapp obviously have very different storage requirements. The user will know what the intentions of the image editor webapp are and could agree to change the storage limit at their own discretion.
Spec says 5 MB, Webkit does 5 MB, not going to change.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
| Assignee | ||
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
Firefox's quota is actually 5 MB per domain name, not per site, which makes it especially limiting. See Bug 1064466 for the domain name issue.
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•