Bug 653335 - Sync setup wizard triggers Change Master Password dialog. r=philikon

This commit is contained in:
Richard Newman 2011-10-26 13:46:40 -07:00
Родитель f17453e9a4
Коммит 566c1d98d5
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -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 {