From 2b55741f5a896d9a92abc094d0ead29b7af63e8f Mon Sep 17 00:00:00 2001 From: Sam Penrose Date: Thu, 3 Jul 2014 13:23:12 -0700 Subject: [PATCH] Bug 1034229 - Fire oncancel() when passed to request() with refreshAuthentication. r=jedp --- toolkit/identity/FirefoxAccounts.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/identity/FirefoxAccounts.jsm b/toolkit/identity/FirefoxAccounts.jsm index 8ba3817f85c..e8374480caa 100644 --- a/toolkit/identity/FirefoxAccounts.jsm +++ b/toolkit/identity/FirefoxAccounts.jsm @@ -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);