зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1058319 - Add a geolocation-noprompt permission part 1: permission table update r=gwagner
This commit is contained in:
Родитель
af55ed4213
Коммит
4df0ccbe35
|
@ -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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче