Bug 1058319 - Add a geolocation-noprompt permission part 1: permission table update r=gwagner

This commit is contained in:
Fabrice Desré 2014-08-28 17:25:01 -07:00
Родитель af55ed4213
Коммит 4df0ccbe35
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -37,6 +37,12 @@ this.PermissionsTable = { geolocation: {
privileged: PROMPT_ACTION,
certified: PROMPT_ACTION
},
"geolocation-noprompt": {
app: DENY_ACTION,
privileged: DENY_ACTION,
certified: ALLOW_ACTION,
substitute: ["geolocation"]
},
camera: {
app: DENY_ACTION,
privileged: PROMPT_ACTION,
@ -517,10 +523,10 @@ this.PermissionsReverseTable = (function () {
let reverseTable = {};
for (let permName in PermissionsTable) {
let permAliases;
let permAliases = [];
if (PermissionsTable[permName].access) {
permAliases = expandPermissions(permName, "readwrite");
} else {
} else if (!PermissionsTable[permName].substitute) {
permAliases = expandPermissions(permName);
}
for (let i = 0; i < permAliases.length; i++) {