Bug 982848: Don't clear syncKeyBundle in BrowserID Identity manager during failures to fetch token. r=markh

--HG--
extra : rebase_source : 42bccbef9e86cbc2f9e6113656acdddd04844f67
This commit is contained in:
Chris Karlof 2014-03-12 14:31:18 -07:00
Родитель 4fc32e3463
Коммит e94dc84363
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -135,7 +135,7 @@ this.BrowserIDManager.prototype = {
}
// If we are already happy then there is nothing more to do.
if (Weave.Status.login == LOGIN_SUCCEEDED) {
if (this._syncKeyBundle) {
return Promise.resolve();
}
@ -513,7 +513,6 @@ this.BrowserIDManager.prototype = {
// This will arrange for us to be in the right 'currentAuthState'
// such that UI will show the right error.
this._shouldHaveSyncKeyBundle = true;
this._syncKeyBundle = null;
Weave.Status.login = this._authFailureReason;
Services.obs.notifyObservers(null, "weave:service:login:error", null);
throw err;