зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1037170 - Fire oncancel() when user cancels Sign Up/Sign In. r=jedp
This commit is contained in:
Родитель
b82961efc1
Коммит
ad61403660
|
@ -185,9 +185,10 @@ FxAccountsService.prototype = {
|
|||
this.doLogin(aRPId, data);
|
||||
},
|
||||
error => {
|
||||
log.error("get assertion failed: " + JSON.stringify(error));
|
||||
log.debug("get assertion failed: " + JSON.stringify(error));
|
||||
// Cancellation is passed through an error channel; here we reroute.
|
||||
if (error.error && (error.error.details == "DIALOG_CLOSED_BY_USER")) {
|
||||
if ((error.error && (error.error.details == "DIALOG_CLOSED_BY_USER")) ||
|
||||
(error.details == "DIALOG_CLOSED_BY_USER")) {
|
||||
return this.doCancel(aRPId);
|
||||
}
|
||||
this.doError(aRPId, error);
|
||||
|
|
Загрузка…
Ссылка в новой задаче