mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
[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:
parent
d241dd65c1
commit
690fb97392
3 changed files with 1 additions and 11 deletions
|
|
@ -53,11 +53,6 @@ DOMInterfaces = {
|
|||
'concrete': False
|
||||
},
|
||||
|
||||
'AddonManagerPermissions': {
|
||||
'wrapperCache': False,
|
||||
'concrete': False
|
||||
},
|
||||
|
||||
'AnimationEffectReadOnly': {
|
||||
'concrete': False
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ module.exports = { // eslint-disable-line no-undef
|
|||
"addMessageListener": false,
|
||||
"removeEventListener": false,
|
||||
"sendAsyncMessage": false,
|
||||
"AddonManagerPermissions": false,
|
||||
|
||||
"initialProcessData": true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue