Bug 1791350 - Make Services.startup.shuttingDown be based on AppShutdown::isInOrBeyond. r=florian
authorJens Stutte <jstutte@mozilla.com>
Tue, 20 Sep 2022 05:59:25 +0000
changeset 635843 1a7aa2f529bf60afa632041b16c4f1d02517fa69
parent 635842 49661cdd39386af93102e01db1a031db822667b5
child 635844 f41eb293fa5bf061fcbf081f41b06ff3096811a6
push id170010
push userjstutte@mozilla.com
push dateTue, 20 Sep 2022 06:01:51 +0000
treeherderautoland@f41eb293fa5b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1791350
milestone107.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1791350 - Make Services.startup.shuttingDown be based on AppShutdown::isInOrBeyond. r=florian Differential Revision: https://phabricator.services.mozilla.com/D157617
toolkit/components/startup/nsAppStartup.cpp
--- a/toolkit/components/startup/nsAppStartup.cpp
+++ b/toolkit/components/startup/nsAppStartup.cpp
@@ -604,17 +604,17 @@ nsAppStartup::ExitLastWindowClosingSurvi
 }
 
 //
 // nsAppStartup->nsIAppStartup2
 //
 
 NS_IMETHODIMP
 nsAppStartup::GetShuttingDown(bool* aResult) {
-  *aResult = mShuttingDown;
+  *aResult = AppShutdown::IsInOrBeyond(ShutdownPhase::AppShutdownConfirmed);
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsAppStartup::GetStartingUp(bool* aResult) {
   *aResult = mStartingUp;
   return NS_OK;
 }