Closed Bug 1816091 Opened 3 years ago Closed 3 years ago

Update cached quota usage for a file with its QuotaObject

Categories

(Core :: DOM: File, task, P3)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: jari, Assigned: jari)

References

Details

Attachments

(1 file)

Whenever a file gets locked, the cached sum of the quota usage in QuotaManager may currently be updated by FileSystemDatabaseManagerVersion001 with the help of IncreaseSize() method of the QuotaObject of the OPFS database.

Since the usage update is not related to the database file, it is in principle more correct to use the QuotaObject of the file which is being locked, and whose size is actually updated, to perform the operation.

Pushed by jjalkanen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8536459db281 Update cached quota usage for a file with its QuotaObject. r=dom-storage-reviewers,janv
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: