Bug 149764: changes to quit-application observer topic. r=danm, sr=jst

git-svn-id: svn://10.0.0.236/trunk@133312 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjesup%wgate.com
2002-11-07 20:25:45 +00:00
parent ee87fd1e16
commit 47169439c2
4 changed files with 5 additions and 40 deletions

View File

@@ -583,10 +583,10 @@ nsAppShellService::Quit(PRUint32 aFerocity)
if (aFerocity == eForceQuit) {
// do it!
#ifdef MOZ_PHOENIX
// No chance of the shutdown being cancelled from here on; tell people
// we're shutting down for sure while all services are still available.
nsCOMPtr<nsIObserverService> obsService = do_GetService("@mozilla.org/observer-service;1", &rv);
obsService->NotifyObservers(nsnull, "quit-application", nsnull);
#endif
// first shutdown native app support; doing this first will prevent new
// requests to open additional windows coming in.