Bug 1034229 - Fire oncancel() when passed to request() with refreshAuthentication. r=jedp

This commit is contained in:
Sam Penrose 2014-07-03 13:23:12 -07:00
parent 2e5ce34c29
commit 6489eebc7d

View File

@ -187,7 +187,7 @@ FxAccountsService.prototype = {
error => {
log.error("get assertion failed: " + JSON.stringify(error));
// Cancellation is passed through an error channel; here we reroute.
if (error.details && (error.details.error == "DIALOG_CLOSED_BY_USER")) {
if (error.error && (error.error.details == "DIALOG_CLOSED_BY_USER")) {
return this.doCancel(aRPId);
}
this.doError(aRPId, error);