Wrong FileSystemAPI behaviour without ~10gb of free space
Reported by
zanpaku...@gmail.com,
May 2 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 Steps to reproduce the problem: 1. Have around 5-10gb of free space 2. Open test code: https://jsfiddle.net/smf3knoe/ 3. Request quota 4. Write file What is the expected behavior? 1. Granted bytes equals to requested but actually it is 0bytes. Everything seems fine until file is written where QuotaExceeded error is thrown. Granted bytes should be 0. 2. To still work if asked for example - 10mb, but user still have few gb to spare. 3. On each page reload storage permission is asked again. What went wrong? Cant write files because of quota exceeded error and cant properly check for valid granted space unless without checking if dummy file can be written. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 58.0.3029.81 Channel: stable OS Version: 10.0 Flash Version:
,
May 2 2017
Works for me (CrOS 57) if I accept the "Store files on this device" prompt; if I deny the permission I get 0 bytes granted. Are you seeing the prompt? The quota API you're using is defined here: https://www.w3.org/TR/2012/WD-quota-api-20120703/#widl-StorageQuota-requestQuota-void-unsigned-long-long-newQuotaInBytes-StorageQuotaCallback-successCallback-StorageErrorCallback-errorCallback Note: "successCallback may return a smaller amount of quota than requested." So if the quota request returns 0 it is unsurprising that the write fails.
,
May 3 2017
,
May 8 2017
If you're not seeing the prompt, can you try clearing your data for the fiddle.jshell.net and retrying? * Open a tab, go to: chrome://settings/cookies * Put 'jshell' in the search box * Click the 'x' to clear the storage for that origin I wonder if you've previously requested a lower storage for that origin so the grant for a larger amount is being denied?
,
Jun 8 2017
No feedback was received in the last 30 days from reporter "zanpakutos@gmail.com", so archiving this. Please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||
►
Sign in to add a comment |
||||
Comment 1 by jsb...@chromium.org
, May 2 2017