From 59cc2eb49a1fbece8c572853ab610da67d975ae7 Mon Sep 17 00:00:00 2001 From: Austin King Date: Sat, 8 Jun 2013 13:50:25 -0700 Subject: [PATCH] Bug 881014 - Cancel buttons in UI should call RP's oncancel method. r=jedp --- b2g/chrome/content/identity.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/b2g/chrome/content/identity.js b/b2g/chrome/content/identity.js index 38532e3ad9a..efa492168cc 100644 --- a/b2g/chrome/content/identity.js +++ b/b2g/chrome/content/identity.js @@ -109,13 +109,16 @@ function doInternalRequest() { method: 'login', assertion: assertion, _internalParams: internalParams}); + } else { + identityCall({ + method: 'cancel' + }); } closeIdentityDialog(); }, stringifiedOptions); } } - function doInternalLogout(aOptions) { log("doInternalLogout:", (options && isLoaded)); if (options && isLoaded) {