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
Родитель b37931e760
Коммит 96dab6f1fb
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -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;
}