Bug 312135 - cannot terminate thunderbird.exe - r=bienvenu

git-svn-id: svn://10.0.0.236/trunk@183064 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bsmedberg%covad.net
2005-10-26 17:32:21 +00:00
parent bfdab5d881
commit fc9bd076a8

View File

@@ -1186,6 +1186,10 @@ nsresult nsMsgComposeService::ShowCachedComposeWindow(nsIDOMWindowInternal *aCom
{
nsresult rv = NS_OK;
nsCOMPtr<nsIObserverService> obs
(do_GetService("@mozilla.org/observer-service;1", &rv));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr <nsIScriptGlobalObject> globalScript = do_QueryInterface(aComposeWindow, &rv);
NS_ENSURE_SUCCESS(rv,rv);
@@ -1228,6 +1232,8 @@ nsresult nsMsgComposeService::ShowCachedComposeWindow(nsIDOMWindowInternal *aCom
if (aShow) {
rv = windowMediator->RegisterWindow(xulWindow);
NS_ENSURE_SUCCESS(rv,rv);
obs->NotifyObservers(xulWindow, "xul-window-registered", nsnull);
}
// hide (show) the cached window
@@ -1239,6 +1245,8 @@ nsresult nsMsgComposeService::ShowCachedComposeWindow(nsIDOMWindowInternal *aCom
if (!aShow) {
rv = windowMediator->UnregisterWindow(xulWindow);
NS_ENSURE_SUCCESS(rv,rv);
obs->NotifyObservers(xulWindow, "xul-window-destroyed", nsnull);
}
}
else {