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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user