зеркало из https://github.com/mozilla/gecko-dev.git
Bug 814156 - Need additional security checks for the "permissions" permission. r=sicking, a=blocking-basecamp
This commit is contained in:
Родитель
d21eb2c7aa
Коммит
bdc4a0b3c7
|
@ -108,6 +108,11 @@ this.PermissionSettingsModule = {
|
|||
let result;
|
||||
switch (aMessage.name) {
|
||||
case "PermissionSettings:AddPermission":
|
||||
if (!aMessage.target.assertPermission("permissions")) {
|
||||
Cu.reportError("PermissionSettings message " + msg.name +
|
||||
" from a content process with no 'permissions' privileges.");
|
||||
return null;
|
||||
}
|
||||
this.addPermission(msg);
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче