зеркало из https://github.com/mozilla/pjs.git
Bug 653335 - Sync setup wizard triggers Change Master Password dialog. r=philikon
This commit is contained in:
Родитель
f17453e9a4
Коммит
566c1d98d5
|
@ -1092,6 +1092,9 @@ let Utils = {
|
||||||
// If Master Password is enabled and locked, present a dialog to unlock it.
|
// If Master Password is enabled and locked, present a dialog to unlock it.
|
||||||
// Return whether the system is unlocked.
|
// Return whether the system is unlocked.
|
||||||
ensureMPUnlocked: function ensureMPUnlocked() {
|
ensureMPUnlocked: function ensureMPUnlocked() {
|
||||||
|
if (!Utils.mpLocked()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
let sdr = Cc["@mozilla.org/security/sdr;1"]
|
let sdr = Cc["@mozilla.org/security/sdr;1"]
|
||||||
.getService(Ci.nsISecretDecoderRing);
|
.getService(Ci.nsISecretDecoderRing);
|
||||||
try {
|
try {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче