New issue
Advanced search Search tips

Issue 800329 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 794269
Owner: ----
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Increase storage quota available to an Incognito window

Project Member Reported by jeffy@chromium.org, Jan 9 2018

Issue description

Chrome Version: All
OS: All

What steps will reproduce the problem?
(1) Open a fresh Incognito window.
(2) Visit https://cloud3squared.com/files/sw-analytics-demo/index.html (or any other PWA that stores data using the Cache Storage API).
(3) Observe that there is only ~120mb of storage quota (https://developers.google.com/web/updates/2017/08/estimating-available-storage-space) allocated to each origin in that window.
(4) Compare with a non-Incognito window, which is allocated a storage quota proportional to the amount of free space left on the device.
(5) Reload a few times and the quota will be quickly used up.

What is the expected result?
Something larger than ~120mb—ideally the same quota as a non-Incognito window would get, so that developers testing their Progressive Web Apps in Incognito windows don't see an artificially low limit.

What happens instead?
The ~120mb is very easy to use up, leading to QuotaExceeded exceptions that would likely not be seen in non-Incognito windows (unless the device was legitimately storage constrained).

The fact that opaque cached responses contribute ~7mb each to the storage usage means that you can cache around 17 entries before your entire PWA stops allowing additional caching.

(See https://bugs.chromium.org/p/chromium/issues/detail?id=796060 for more context as to why the quota is being used so quickly.)
 

Comment 1 by jsb...@chromium.org, Jan 19 2018

Status: Available (was: Untriaged)
Incognito windows use browser-process memory rather than writing to disk, so we can't dramatically increase the amount they use.

The specific numbers are at https://cs.chromium.org/chromium/src/storage/browser/quota/quota_settings.cc?sq=package:chromium&l=40

10% of system memory, maxed at 300MB for the pool, and an origin gets at most 1/3 of that = 100MB, and then randomized a bit. (Not sure how you're getting 120MB, it should max out at 110MB. Maybe just rounding errors.)

We could raise those limits, but that puts us at risk of browser OOMs. Maybe just on 64-bit desktop machines it'd be okay.

All that said... mobile devices have low amounts of storage. Is it that bad to make developers think about it?

Comment 2 by jeffy@chromium.org, Jan 19 2018

Thanks for that context!

I'll leave this open on the off chance that someone does feel comfortable raising the limits, but if there isn't an appetite to do that, feel free to close this.

Comment 3 by jsb...@chromium.org, Jan 19 2018

Components: -Blink>Storage Blink>Storage>Quota
Mergedinto: 794269
Status: Duplicate (was: Available)

Sign in to add a comment