зеркало из https://github.com/mozilla/gecko-dev.git
Bug 398886: resetting a master password does not clear existing password manager logins. r=kaie, sr=mconnor, a=beltzner, aM9=beltzer.
This commit is contained in:
Родитель
e049305b64
Коммит
fee96d5c65
|
@ -56,6 +56,13 @@ function resetPassword()
|
|||
var token = pk11db.findTokenByName(tokenName);
|
||||
token.reset();
|
||||
|
||||
try {
|
||||
var loginManager = Components.classes["@mozilla.org/login-manager;1"].
|
||||
getService(Components.interfaces.nsILoginManager);
|
||||
loginManger.removeAllLogins();
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
var pref = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService);
|
||||
if (pref) {
|
||||
pref = pref.getBranch(null);
|
||||
|
|
Загрузка…
Ссылка в новой задаче