263845 - firefox branch unregisters IE as default browser when it shouldn't - make sure we don'tunregister ddeexec keys when we're not the default browser

git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@164044 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ben%bengoodger.com
2004-10-19 20:55:22 +00:00
parent e565b7e7d7
commit dbd336d203

View File

@@ -1082,6 +1082,11 @@ nsWindowsShellService::Observe(nsISupports* aObject, const char* aTopic, const P
return RegisterDDESupport();
}
else if (!nsCRT::strcmp("quit-application", aTopic)) {
PRBool isDefault;
IsDefaultBrowser(PR_FALSE, &isDefault);
if (!isDefault)
return NS_OK;
nsCOMPtr<nsIObserverService> os(do_GetService("@mozilla.org/observer-service;1"));
os->RemoveObserver(this, "quit-application");