Closed Bug 1814577 Opened 2 years ago Closed 1 year ago

Prevent potential race from removeDirectory background task (remove only the child directories)

Categories

(Core :: Storage: Quota Manager, task)

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

Attachments

(1 file)

Consider this situation:

  1. The background task is triggered to recursively remove to-be-deleted directory at shutdown
  2. A new Firefox instance starts with the same profile
  3. It shuts down and moves purged directories to the to-be-deleted that is already being removed

It should keep to-be-deleted directory to prevent this situation. Existing otherFoldersSuffix option of the background task should be useful here.

Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/63aabaa46bb1 Remove only the subitems of to-be-removed r=janv,dom-storage-reviewers
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: