Closed Bug 1786501 Opened 2 years ago Closed 2 years ago

Shutdown StorageManager when nsIGlobalObject is dying

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(6 files, 2 obsolete files)

StorageManager will hold FileSystemManager which will hold FileSystemManagerChild. PFileSystemManager is a top level protocol which needs to be properly closed when IPC is still available.

The new lifecycle management (bug 1786465) can actually cause that the protocol is closed during cycle collection (when there are no DOM objects referencing FileSystemManager).

This can be used for explicit testing of shutdown in tests.

Attachment #9291114 - Attachment description: Bug 1786501 - Add a way to shutdown imported global objects in xpcshell; r=#dom-storage,smaug → Bug 1786501 - Add a way to delete imported global properties; r=#dom-storage,smaug
Attachment #9291115 - Attachment description: Bug 1786501 - Call StorageManager::Shutdown from xpc::GlobalProperties::Shutdown; r=#dom-storage,smaug → Bug 1786501 - Add support for the "storage" property to xpc::GlobalProperties::Delete; r=#dom-storage,smaug
Attachment #9291923 - Attachment description: Bug 1786501 - Expose StorageManager::Shutdown when the testing pref is set; r=#dom-storage,smaug → Bug 1786501 - Expose StorageManager::Shutdown to chrome; r=#dom-storage,smaug
Attachment #9291924 - Attachment description: Bug 1786501 - Call Cu.deleteGlobalProperties(["storage"]) from _execute_test; r=#dom-storage,smaug → Bug 1786501 - Shutdown StorageManager when the test is done in _execute_test; r=#dom-storage,smaug
Attachment #9291114 - Attachment is obsolete: true
Attachment #9291115 - Attachment is obsolete: true
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9cc6ef98fb61 Add empty StorageManager::Shutdown method; r=smaug https://hg.mozilla.org/integration/autoland/rev/0986cb52d5b4 Call StorageManager::Shutdown from Navigator::Invalidate; r=smaug https://hg.mozilla.org/integration/autoland/rev/49f18f0254ec Implement WorkerNavigator::Invalidate; r=smaug https://hg.mozilla.org/integration/autoland/rev/006bf330762f Call StorageManager::Shutdown from WorkerNavigator::Invalidate; r=smaug https://hg.mozilla.org/integration/autoland/rev/605ea704ca38 Expose StorageManager::Shutdown to chrome; r=smaug https://hg.mozilla.org/integration/autoland/rev/1e92d61873a8 Shutdown StorageManager when the test is done in _execute_test; r=smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: