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 7f0be7e753
commit 2b55741f5a

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);