mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Revert "[WebRequest] Remove AddonManagerPermissions leftovers"
This commit is contained in:
parent
c7bc87cff9
commit
2b2df633f6
3 changed files with 11 additions and 1 deletions
|
|
@ -53,6 +53,11 @@ DOMInterfaces = {
|
||||||
'concrete': False
|
'concrete': False
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'AddonManagerPermissions': {
|
||||||
|
'wrapperCache': False,
|
||||||
|
'concrete': False
|
||||||
|
},
|
||||||
|
|
||||||
'AnimationEffectReadOnly': {
|
'AnimationEffectReadOnly': {
|
||||||
'concrete': False
|
'concrete': False
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ module.exports = { // eslint-disable-line no-undef
|
||||||
"addMessageListener": false,
|
"addMessageListener": false,
|
||||||
"removeEventListener": false,
|
"removeEventListener": false,
|
||||||
"sendAsyncMessage": false,
|
"sendAsyncMessage": false,
|
||||||
|
"AddonManagerPermissions": false,
|
||||||
|
|
||||||
"initialProcessData": true,
|
"initialProcessData": true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -720,7 +720,11 @@ HttpObserverManager = {
|
||||||
try {
|
try {
|
||||||
let result = callback(data);
|
let result = callback(data);
|
||||||
|
|
||||||
if (result && typeof result === "object" && opts.blocking) {
|
if (result && typeof result === "object" && opts.blocking
|
||||||
|
&& !AddonManagerPermissions.isHostPermitted(uri.host)
|
||||||
|
&& (!loadInfo || !loadInfo.loadingPrincipal
|
||||||
|
|| !loadInfo.loadingPrincipal.URI
|
||||||
|
|| !AddonManagerPermissions.isHostPermitted(loadInfo.loadingPrincipal.URI.host))) {
|
||||||
handlerResults.push({opts, result});
|
handlerResults.push({opts, result});
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue