New issue
Advanced search Search tips

Issue 826292 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 9
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: ----



Sign in to add a comment

requestQuota not works properly

Reported by algr...@gmail.com, Mar 27 2018

Issue description

Chrome 65.0.3325.109
Android

Since this update, when using FileSystem the quota permission is not grant for the size we specify, but the size is mush less.

In this example the quota grant is not 1000MB but much less, even if the user accepts the permission : 

var requestedBytes = 1024*1024*1000; // 1000MB

navigator.webkitPersistentStorage.requestQuota (
    requestedBytes, function(grantedBytes) {  
        window.requestFileSystem(PERSISTENT, grantedBytes, onInitFs, errorHandler);

    }, function(e) { console.log('Error', e); }
);


 
Labels: Needs-triage-Mobile
Components: Blink>Storage>Quota
Labels: Triaged-Mobile
@algryad: Thanks for the report!!

Unable to test this issue as this seems to be out of TE scope. Adding Blink>Storage>Quota for further triage.

Thanks!!

Comment 3 by jsb...@chromium.org, Apr 30 2018

Components: Blink>Storage>FileSystem
Status: Available (was: Unconfirmed)
Hmmm... the request should be capped at kPerHostPersistentQuotaLimit = 10 * 1024 * kMBytes (10GB) which is over the limit tested above (1GB). Perhaps something was broken during mojoification/onion souping...

FWIW, in M68 on CrOS I can run:

// request 20GB
navigator.webkitPersistentStorage.requestQuota(20*1024*1024, ok => console.log(`ok: ${ok}`), err => console.warn(err))
// 20971520

// query:
navigator.webkitPersistentStorage.queryUsageAndQuota((usage, quota) => console.log(`usage ${usage} quota ${quota}`))
// usage 0 quota 20971520

Android specific?

Components: -Blink>Storage>FileSystem
Summary: requestQuota not works properly (was: requestFileSystem not works properly)
Seems to be just a quota thing, not a filesystem thing? Unless the bug is that requestFileSystem completely ignores the requested quota passed in (which it does in our implementation), but then I'm not entirely sure what the described/expected behavior is here.
Labels: Needs-Feedback
No repro for me on Android with M66 (via browserstack). I was able to request 20GB, accept the prompt, query quota to see the 20GB, and then use window.webkitRequestFileSystem (note 'webkit' prefix, since this is nonstandard) to get a DOMFileSystem instance.

Can the reporter put up a test file somewhere (e.g. jsfiddle) that demonstrates the problem?


Status: Unconfirmed (was: Available)
Cc: chelamcherla@chromium.org
Status: WontFix (was: Unconfirmed)
Closing this issue due to lack of feedback from reporter. Please feel free to raise a new issue if this is still seen.

Thanks!

Sign in to add a comment