Indexed DB usage reported via Quota API is inconsistent |
|
Issue descriptionPer Eiji Kitamura: "When I added 100MB to File System, WebSQL results are as expected. Remaining quota in "Quota" section increased by 100MB. But when I tested it on IndexedDB, it only increased by 14MB though IndexedDB part indicates 100MB. I'm sure this is not a bug on the tool because it works fine on other browsers." This is using http://demo.agektmr.com/storage/ We should try and repro and figure out what's going on.
,
Sep 29 2016
https://www.w3.org/TR/quota-api/ should probably be formally deprecated. It's abandoned in favor of https://storage.spec.whatwg.org/#api which introduces an origin-wide persistent permission rather than the temporary/persistent namespace split. Only Chrome's filesystem API uses the legacy persistent storage namespace.
,
Sep 30 2016
Hi, I'm the original reporter. I just remembered that Quota Management API persistent storage was only supported by FileSystem API and not by others including IndexedDB, WebSQL, AppCache etc at least back when I originally examined the behaviour http://www.html5rocks.com/en/tutorials/offline/quota-research/ So it's expected behaviour that persistent storage gauge didn't change when you upload 100MB into IDB. > I'm not sure what "it works fine on other browsers" in the description means. This was my misunderstanding and "it works fine on other browsers" is not necessarily true at this point. You are correct. But it just reminded me of an interesting observation on Firefox when I was looking at actual quota usage. Firefox uses (at least used to use) sqlite and I was observing it and figured that it compresses stored entries. It caused me hard time figuring out actual disk usage to see quota consumption. I wonder if Chrome changed behaviour and compresses IndexedDB's stored entires.
,
Sep 30 2016
Yes, Chrome now compresses Indexed DB data, starting about 3 years ago.
,
Oct 4 2016
OK, then 100MB > 14MB should be expected I assume. |
|
►
Sign in to add a comment |
|
Comment 1 by pwnall@chromium.org
, Sep 29 2016