Closed Bug 1809035 Opened 1 year ago Closed 1 year ago

Explicitly close all registered RemoteQuotaObjectParents in FileSystemManagerParent::ActorDestroy

Categories

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

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: janv, Assigned: janv)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We currently delay the unregistration of FileSystemManagerParent from FileSystemDataManager until all RemoteQuotaObjectParent objects are unregistered from FileSystemManagerParent to make sure that canonical quota objects are released before we let FileSystemDataManager begin its closing which releases the directory lock in the end. This works fine, but the code can be simpler because we actually don't have to wait for the async close of the PRemoteQuotaObject protocol triggered by the content. We can call Close on all registered RemoteQuotaObjectParent objects in FileSystemManagerParent::ActorDestroy which will synchronously call RemoteQuotaObjectParent::ActorDestroy which releases the canonical quota object. It's not a problem that sometimes the PRemoteQuotaObject protocol will be closed from both ends. IPC internal code can deal with such race.

Summary: Explicitly close all registered RemoteQuotaObjectParents FileSystemManagerParent::ActorDestroyed → Explicitly close all registered RemoteQuotaObjectParents in FileSystemManagerParent::ActorDestroyed
Summary: Explicitly close all registered RemoteQuotaObjectParents in FileSystemManagerParent::ActorDestroyed → Explicitly close all registered RemoteQuotaObjectParents in FileSystemManagerParent::ActorDestroy
Blocks: 1809043
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd1878fc19b9
Add DEBUGONLY macro; r=dom-storage-reviewers,jari
https://hg.mozilla.org/integration/autoland/rev/acd05f9f45fa
Explicitly close all registered RemoteQuotaObjectParents in FileSystemManagerParent::ActorDestroy; r=dom-storage-reviewers,jari
Status: ASSIGNED → RESOLVED
Closed: 1 year 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: