mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl
This commit is contained in:
parent
9850d4f0f5
commit
27e40a03e1
@ -437,18 +437,18 @@ ContactManager.prototype = {
|
||||
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)
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user