Count Local Storage towards quota |
||||||||
Issue descriptionVersion: 55.0.2845.0 (canary) OS: Windows, Linux (I assume all) What steps will reproduce the problem? (1) Open the "Cookies and site data" dialog (chrome://settings/cookies, or MD equivalent) (2) Find an entry that uses Local storage (3) Compare the size reported for the site with the sizes of each item. I happened to use www.netflix.com, where it is obvious. The reported total is 34.9 KB, but the individual sizes are: Indexed Database: 34.9 KB Local Storage: 14.0 KB. (See attached image) Similar for www.google.com. Total is 1,119 KB, but the individual sizes are: Cache storage: 1111 KB Indexed database: 4.8 KB Local Storage: 3.0 KB Service Workers: 3.6 KB Total 1122.4 KB For a site with just Local storage (in my case www.youtube.com), no total size is displayed. What is the expected output? I would expect the total to be 48.9 KB for www.netflix.com, 1122 KB for www.google.com. What do you see instead? It appears that the Local storage size is not included in the total.
,
Sep 28 2016
We've talked about counting DOM Storage under quota for ages... I'm surprised we don't have a bug on it already, but not finding one. :P It'd be a behavior change - right now each origin gets 10MB of DOM Storage (see issue 225934 ) regardless of quota limits. Not only doesn't it count against quota but (IIRC) we don't flush it when we evict an origin (not 100% sure though) - michaeln@?
,
Sep 30 2016
That seems to match my experience with it. Calling StorageInfoFetcher::ClearStorage and BrowsingDataLocalStorageHelper::DeleteOrigin still leaves some LocalStorage behind. Renaming the bug to reflect what is needed.
,
Oct 4 2016
,
Oct 5 2016
Currently, we treat local/session storage as completely outside of quota system, similar to how cookies/cache and various other smaller/transient stores are not counted. > we don't flush it when we evict an origin Yes, i beleive this is true today.
,
Oct 6 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 6 2017
*snooze*
,
Oct 8
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 8
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by finnur@chromium.org
, Sep 28 2016Components: Blink>Storage>DOMStorage Blink>Storage