mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +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
|
||||
},
|
||||
|
||||
'AddonManagerPermissions': {
|
||||
'wrapperCache': False,
|
||||
'concrete': False
|
||||
},
|
||||
|
||||
'AnimationEffectReadOnly': {
|
||||
'concrete': False
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ module.exports = { // eslint-disable-line no-undef
|
|||
"addMessageListener": false,
|
||||
"removeEventListener": false,
|
||||
"sendAsyncMessage": false,
|
||||
"AddonManagerPermissions": false,
|
||||
|
||||
"initialProcessData": true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -720,7 +720,11 @@ HttpObserverManager = {
|
|||
try {
|
||||
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});
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue