mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814156 - Need additional security checks for the "permissions" permission. r=sicking
This commit is contained in:
parent
011de3c012
commit
ef75ea174d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user