Bug 881014 - Cancel buttons in UI should call RP's oncancel method. r=jedp
authorAustin King <ozten@mozilla.com>
Sat, 08 Jun 2013 13:50:25 -0700
changeset 134552 1db48d05d3024a6e1a1282301e537d5db641ac5d
parent 134551 786e8d981ae6581dc654d94525d3a357b8b97acc
child 134553 b817144c8fff21ea590265cf5867be736458e262
push id29266
push userryanvm@gmail.com
push dateMon, 10 Jun 2013 19:46:08 +0000
treeherdermozilla-inbound@2f6978e0b8e3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjedp
bugs881014
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 881014 - Cancel buttons in UI should call RP's oncancel method. r=jedp
b2g/chrome/content/identity.js
--- a/b2g/chrome/content/identity.js
+++ b/b2g/chrome/content/identity.js
@@ -104,23 +104,26 @@ function doInternalRequest() {
       options.origin,
       function(assertion, internalParams) {
         internalParams = internalParams || {};
         if (assertion) {
           identityCall({
             method: 'login',
             assertion: assertion,
             _internalParams: internalParams});
+        } else {
+          identityCall({
+            method: 'cancel'
+          });
         }
         closeIdentityDialog();
       },
       stringifiedOptions);
   }
 }
-
 function doInternalLogout(aOptions) {
   log("doInternalLogout:", (options && isLoaded));
   if (options && isLoaded) {
     let BrowserID = content.wrappedJSObject.BrowserID;
     BrowserID.internal.logout(options.origin, function() {
       identityCall({method:'logout'});
       closeIdentityDialog();
     });