зеркало из 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,
|
||||
ip: null,
|
||||
frameAncestors: [],
|
||||
requestSize: 0,
|
||||
responseSize: 0,
|
||||
incognito: false,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -13,8 +13,6 @@ const EXTENSION_DATA = {
|
|||
permissions: ["webRequest", "<all_urls>"],
|
||||
},
|
||||
|
||||
isPrivileged: true,
|
||||
|
||||
async background() {
|
||||
browser.test.log("background script running");
|
||||
|
||||
|
|
|
@ -786,6 +786,8 @@ HttpObserverManager = {
|
|||
proxyInfo: channel.proxyInfo,
|
||||
|
||||
serialize: serializeRequestData,
|
||||
requestSize: channel.requestSize,
|
||||
responseSize: channel.responseSize,
|
||||
};
|
||||
|
||||
return Object.assign(data, extraData);
|
||||
|
@ -856,8 +858,6 @@ HttpObserverManager = {
|
|||
let { policy } = opts;
|
||||
if (policy && policy.extension.isPrivileged) {
|
||||
data.urlClassification = channel.urlClassification;
|
||||
data.requestSize = channel.requestSize;
|
||||
data.responseSize = channel.responseSize;
|
||||
}
|
||||
|
||||
if (registerFilter && opts.blocking && opts.policy) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче