[WebRequest] Remove AddonManagerPermissions leftovers

This was added as part of the WebExtension sec issue CVE-2017-5389.
Since we no longer have this interface, it needed to be removed to
prevent errors in the WebRequest channel callback.
This commit is contained in:
wolfbeast 2020-01-29 09:08:00 +01:00 committed by Roy Tam
commit 690fb97392
3 changed files with 1 additions and 11 deletions

View file

@ -53,11 +53,6 @@ DOMInterfaces = {
'concrete': False
},
'AddonManagerPermissions': {
'wrapperCache': False,
'concrete': False
},
'AnimationEffectReadOnly': {
'concrete': False
},

View file

@ -8,7 +8,6 @@ module.exports = { // eslint-disable-line no-undef
"addMessageListener": false,
"removeEventListener": false,
"sendAsyncMessage": false,
"AddonManagerPermissions": false,
"initialProcessData": true,
},

View file

@ -720,11 +720,7 @@ HttpObserverManager = {
try {
let result = callback(data);
if (result && typeof result === "object" && opts.blocking
&& !AddonManagerPermissions.isHostPermitted(uri.host)
&& (!loadInfo || !loadInfo.loadingPrincipal
|| !loadInfo.loadingPrincipal.URI
|| !AddonManagerPermissions.isHostPermitted(loadInfo.loadingPrincipal.URI.host))) {
if (result && typeof result === "object" && opts.blocking) {
handlerResults.push({opts, result});
}
} catch (e) {