Open
Bug 1771444
Opened 3 years ago
Streamline the shutdown sequence in nsAppStartup::Quit
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
NEW
People
(Reporter: jstutte, Unassigned)
Details
The shutdown sequence is in nsAppStartup::Quit
. AFAIU it first checks if all windows can be closed.
Then we have the following sequence:
- notify "quit-application-granted" (which can block the main thread for a while)
CloseAllWindows();
AppShutdown::OnShutdownConfirmed();
AppShutdown::AdvanceShutdownPhase(AppShutdownConfirmed);
It looks to me as if 3. and 4. should happen instead of 1. (as they notify, too), followed by 2. in order to make "quit-application-granted" covered by the terminator's timer. There is a state machine build on ferocity that might complicate this change a bit, though.
You need to log in
before you can comment on or make changes to this bug.
Description
•