зеркало из https://github.com/mozilla/pjs.git
bugs 42475, 42550, and 42436 r=dveditz
This commit is contained in:
Родитель
27238649cc
Коммит
c94f5a6d70
|
@ -60,28 +60,6 @@
|
|||
wallet.WALLET_ChangePassword();
|
||||
}
|
||||
|
||||
function convertStoredValues(encrypt)
|
||||
{
|
||||
try {
|
||||
this.pref = Components.classes["component://netscape/preferences"].getService();
|
||||
if(this.pref)
|
||||
this.pref = this.pref.QueryInterface( Components.interfaces.nsIPref );
|
||||
}
|
||||
catch(e) {
|
||||
dump("*** Failed to create prefs object\n");
|
||||
return;
|
||||
}
|
||||
var oldpref = this.pref.GetBoolPref("wallet.crypto");
|
||||
this.pref.SetBoolPref("wallet.crypto", encrypt);
|
||||
dump("\n##### pref="+ this.pref.GetBoolPref("wallet.crypto")+"\n");
|
||||
wallet = Components.classes['component://netscape/wallet'];
|
||||
wallet = wallet.getService();
|
||||
wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
|
||||
wallet.WALLET_ReencryptAll();
|
||||
this.pref.SetBoolPref("wallet.crypto", oldpref);
|
||||
}
|
||||
|
||||
|
||||
]]>
|
||||
</script>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче