Bug 343264 I'm prompted to save a password that password manager filled in. patch by mwu@mozilla.com, r=mconnor

This commit is contained in:
jminta%gmail.com 2006-07-04 01:43:32 +00:00
parent 09cd0b42c9
commit f459e9305b

View File

@ -765,9 +765,12 @@ nsPasswordManager::Observe(nsISupports* aSubject,
branch->GetBoolPref("rememberSignons", &sRememberPasswords);
} else if (!strcmp(aTopic, "app-startup")) {
GetInstance();
NS_IF_RELEASE(sPasswordManager);
}
nsCOMPtr<nsIObserverService> obsService = do_GetService("@mozilla.org/observer-service;1");
NS_ASSERTION(obsService, "No observer service");
obsService->AddObserver(this, "profile-after-change", PR_TRUE);
} else if (!strcmp(aTopic, "profile-after-change"))
nsCOMPtr<nsIPasswordManager> pm = do_GetService(NS_PASSWORDMANAGER_CONTRACTID);
return NS_OK;
}