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); }
);
,
Mar 28 2018
@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!!
,
Apr 30 2018
,
Sep 20
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?
,
Sep 20
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.
,
Sep 20
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?
,
Sep 20
,
Oct 9
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 |
|||||||
Comment 1 by pnangunoori@chromium.org
, Mar 28 2018