Bug 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl
authorGregor Wagner <gwagner@mozilla.com>
Sat, 13 Oct 2012 11:57:59 -0700
changeset 110168 fef8303baf670a9436324f3e52c592fcd3ce0270
parent 110167 ce995fa8292c8b797e663e5c31c062708de70876
child 110169 0f0797cdb55a59cadb71837510a53aeae0962a41
child 110198 d750d39139d1bad9c744626c3b2852ac9a67463e
push id16384
push usergwagner@mozilla.com
push dateSat, 13 Oct 2012 18:58:24 +0000
treeherdermozilla-inbound@fef8303baf67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersddahl
bugs801075
milestone19.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 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl
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,