зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b37931e760
Коммит
96dab6f1fb
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче