Move nsIAsyncShutdownService to non JS implementation
Categories
(Core :: XPCOM, enhancement)
Tracking
()
People
(Reporter: gerard-majax, Unassigned)
References
(Blocks 2 open bugs)
Details
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Collecting some more reasons and related efforts.
Bug 1697745 and in particular bug 1762840 want to streamline the current misalignment between shutdown phases and async shutdown observer notifications. This is currently possible only for shutdown phases the JS async shutdown blocker can actually handle, up to XPCOMShutdown
.
Bug 1768990 wanted to explore how to make it easy to have a sound lifecycle management on shutdown for XPCOM singletons but got immediately blocked on 1796566. That bug was still trying to build on the existing JS code.
Probably the better approach is to:
- have a core, C++ async shutdown blocker manager
- have a JS wrapper around that which resembles the current JS interface of
nsIAsyncShutdown
(minus some adjustments in the spirit of bug 1762840) - make use of the C++ variant for bug 1768990 (XPCOM Singleton lifecycle management)
Comment 2•2 years ago
|
||
D172532 from bug 1775784 is another example of workarounds needed because we do not have this.
Comment 3•10 months ago
|
||
At least the core C++ part would probably live in XPCOM, so let's move it there for now.
Description
•