mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 1037170 - Fire oncancel() when user cancels Sign Up/Sign In. r=jedp
This commit is contained in:
parent
b82961efc1
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user