зеркало из https://github.com/mozilla/gecko-dev.git
Bug 809944 - Require access fields in manifests. r=bent
This commit is contained in:
Родитель
2b76da943f
Коммит
04ddaeaf6d
|
@ -282,15 +282,12 @@ this.expandPermissions = function expandPermissions(aPermName, aAccess) {
|
|||
return [];
|
||||
}
|
||||
|
||||
/*
|
||||
Temporarily disabled in order to add access fields to gaia: See Bug 805646
|
||||
if (!aAccess && tableEntry.access ||
|
||||
aAccess && !tableEntry.access) {
|
||||
Cu.reportError("PermissionsTable.jsm: expandPermissions: Invalid Manifest : " +
|
||||
aPermName + " " + aAccess + "\n");
|
||||
throw new Error("PermissionsTable.jsm: expandPermissions: Invalid Manifest");
|
||||
}
|
||||
*/
|
||||
|
||||
let expandedPerms = [];
|
||||
|
||||
|
@ -313,18 +310,6 @@ Temporarily disabled in order to add access fields to gaia: See Bug 805646
|
|||
return [];
|
||||
}
|
||||
|
||||
// XXXbent This is a temporary hack! Remove this whole block once the
|
||||
// Settings API and the DeviceStorage API have stopped checking just
|
||||
// the bare permission (e.g. "settings" vs. "settings-read").
|
||||
if (true) {
|
||||
expandedPerms.push(aPermName);
|
||||
if (tableEntry.additional) {
|
||||
for each (let additional in tableEntry.additional) {
|
||||
expandedPerms.push(additional);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let permArr = mapSuffixes(aPermName, requestedSuffixes);
|
||||
|
||||
// Add the same suffix to each of the additions.
|
||||
|
|
|
@ -231,7 +231,7 @@ function checkContacts(contact1, contact2) {
|
|||
var req;
|
||||
var index = 0;
|
||||
|
||||
var mozContacts = window.navigator.mozContacts
|
||||
var mozContacts = window.navigator.mozContacts;
|
||||
|
||||
var steps = [
|
||||
function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче