New issue
Advanced search Search tips

Issue 671168 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Chrome giving wrong Used quota and Remaining Quota Value

Reported by nikisha....@gmail.com, Dec 5 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce the problem:
1. Added data in indexed db, gives Used quota
2. But the remaining quota value remains same

What is the expected behavior?

What went wrong?
Chrome is not giving expected Used quota and Remaining Quota Values

Did this work before? N/A 

Chrome version: 54.0.2840.99  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 23.0 r0
 

Comment 1 by ajha@chromium.org, Dec 5 2016

Components: -Blink Blink>Storage
Labels: M-54
Components: -Blink>Storage Blink>Storage>Quota Blink>Storage>IndexedDB
Status: WontFix (was: Unconfirmed)
None of the quota APIs return a "remaining quota" value; they all return usage and quota (i.e. total of used + available).

window.webkitStorageInfo.queryUsageAndQuota(TEMPORARY, (used, quota) => {
  console.log(used, quota);
});

navigator.webkitTemporaryStorage.queryUsageAndQuota((used, quota) => {
  console.log(used, quota);
});

navigator.storageQuota.queryInfo().then(info => {
  console.log(info.used, info.quota);
});

navigator.storage.estimate().then(estimate => {
  console.log(estimate.usage, estimate.quota);
});
I should clarify - I'm resolving as "WontFix" assuming there's a misunderstanding about what the "quota" value returned means and that everything is working as intended. If I'm wrong, please comment and we can re-open!

Sign in to add a comment