зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1545423 - P4 remove privileged restriction r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D51169 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a88e456273
Коммит
e2e1ec4d40
|
@ -193,6 +193,8 @@ add_task(async function test_api() {
|
||||||
thirdParty: false,
|
thirdParty: false,
|
||||||
ip: null,
|
ip: null,
|
||||||
frameAncestors: [],
|
frameAncestors: [],
|
||||||
|
requestSize: 0,
|
||||||
|
responseSize: 0,
|
||||||
incognito: false,
|
incognito: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -13,8 +13,6 @@ const EXTENSION_DATA = {
|
||||||
permissions: ["webRequest", "<all_urls>"],
|
permissions: ["webRequest", "<all_urls>"],
|
||||||
},
|
},
|
||||||
|
|
||||||
isPrivileged: true,
|
|
||||||
|
|
||||||
async background() {
|
async background() {
|
||||||
browser.test.log("background script running");
|
browser.test.log("background script running");
|
||||||
|
|
||||||
|
|
|
@ -786,6 +786,8 @@ HttpObserverManager = {
|
||||||
proxyInfo: channel.proxyInfo,
|
proxyInfo: channel.proxyInfo,
|
||||||
|
|
||||||
serialize: serializeRequestData,
|
serialize: serializeRequestData,
|
||||||
|
requestSize: channel.requestSize,
|
||||||
|
responseSize: channel.responseSize,
|
||||||
};
|
};
|
||||||
|
|
||||||
return Object.assign(data, extraData);
|
return Object.assign(data, extraData);
|
||||||
|
@ -856,8 +858,6 @@ HttpObserverManager = {
|
||||||
let { policy } = opts;
|
let { policy } = opts;
|
||||||
if (policy && policy.extension.isPrivileged) {
|
if (policy && policy.extension.isPrivileged) {
|
||||||
data.urlClassification = channel.urlClassification;
|
data.urlClassification = channel.urlClassification;
|
||||||
data.requestSize = channel.requestSize;
|
|
||||||
data.responseSize = channel.responseSize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (registerFilter && opts.blocking && opts.policy) {
|
if (registerFilter && opts.blocking && opts.policy) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче