Bug 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl, a=blocking-basecamp
authorGregor Wagner <anygregor@gmail.com>
Mon, 15 Oct 2012 11:31:36 -0700
changeset 113369 3704e807ec710f10d512da73366b0e6b920c062d
parent 113368 2466702b986ff8d806e6f42f8b83fad0f1688bed
child 113370 fd0dcda77b6030bad2aa233ce7cbde9f706da8ee
push id2309
push usergwagner@mozilla.com
push dateMon, 15 Oct 2012 18:31:47 +0000
treeherdermozilla-aurora@3704e807ec71 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersddahl, blocking-basecamp
bugs801075
milestone18.0a2
Bug 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl, a=blocking-basecamp
dom/contacts/ContactManager.js
--- a/dom/contacts/ContactManager.js
+++ b/dom/contacts/ContactManager.js
@@ -432,28 +432,28 @@ ContactManager.prototype = {
         }
         break;
       default: 
         if (DEBUG) debug("Wrong message: " + aMessage.name);
     }
     this.removeRequest(msg.requestID);
   },
 
-  askPermission: function (aAccess, aReqeust, aAllowCallback, aCancelCallback) {
+  askPermission: function (aAccess, aRequest, aAllowCallback, aCancelCallback) {
     if (DEBUG) debug("askPermission for contacts");
     let requestID = this.getRequestId({
-      request: aReqeust,
+      request: aRequest,
       allow: function() {
         aAllowCallback();
       }.bind(this),
       cancel : function() {
         if (aCancelCallback) {
           aCancelCallback()
-        } else if (request) {
-          Services.DOMRequest.fireError(request, "Not Allowed");
+        } else if (aRequest) {
+          Services.DOMRequest.fireError(aRequest, "Not Allowed");
         }
       }.bind(this)
     });
 
     let principal = this._window.document.nodePrincipal;
     cpmm.sendAsyncMessage("PermissionPromptHelper:AskPermission", {
       type: "contacts",
       access: aAccess,