зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1064613 - Move server-side account deletion block in _handleGetAssertionError(). r=ferjm
This commit is contained in:
Родитель
3397687a7e
Коммит
738b9fb2e4
|
@ -196,20 +196,19 @@ this.FxAccountsManager = {
|
|||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// Otherwise, the account was deleted, so ask for Sign In/Up
|
||||
return this._localSignOut().then(
|
||||
() => {
|
||||
return this._uiRequest(UI_REQUEST_SIGN_IN_FLOW, aAudience,
|
||||
aPrincipal);
|
||||
},
|
||||
(reason) => {
|
||||
// reject primary problem, not signout failure
|
||||
log.error("Signing out in response to server error threw: " +
|
||||
reason);
|
||||
return this._error(reason);
|
||||
// ... otherwise, the account was deleted, so ask for Sign In/Up
|
||||
return this._localSignOut().then(
|
||||
() => {
|
||||
return this._uiRequest(UI_REQUEST_SIGN_IN_FLOW, aAudience,
|
||||
aPrincipal);
|
||||
},
|
||||
(reason) => {
|
||||
// reject primary problem, not signout failure
|
||||
log.error("Signing out in response to server error threw: " +
|
||||
reason);
|
||||
return this._error(reason);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче