Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/csp.js

Issue 29877564: Issue 6933 - Update adblockpluscore dependency to hg:dcda4859fcbd (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Update core to hg:dcda4859fcbd git:c9dc573 Created Sept. 11, 2018, 2:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/contentFiltering.js ('k') | lib/devtools.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/csp.js
===================================================================
--- a/lib/csp.js
+++ b/lib/csp.js
@@ -17,17 +17,17 @@
"use strict";
const {defaultMatcher} = require("../adblockpluscore/lib/matcher");
const {RegExpFilter, WhitelistFilter} =
require("../adblockpluscore/lib/filterClasses");
const {extractHostFromFrame, isThirdParty} = require("./url");
const {checkWhitelisted} = require("./whitelisting");
-const {FilterNotifier} = require("filterNotifier");
+const {filterNotifier} = require("filterNotifier");
const {logRequest} = require("./hitLogger");
const {typeMap} = RegExpFilter;
browser.webRequest.onHeadersReceived.addListener(details =>
{
let url = new URL(details.url);
let parentFrame = ext.getFrame(details.tabId, details.parentFrameId);
@@ -57,17 +57,17 @@
if (!cspMatch)
return;
}
logRequest([details.tabId], {
url: details.url, type: "CSP", docDomain: hostname,
thirdParty, specificOnly
}, cspMatch);
- FilterNotifier.emit("filter.hitCount", cspMatch, 0, 0, [details.tabId]);
+ filterNotifier.emit("filter.hitCount", cspMatch, 0, 0, [details.tabId]);
if (cspMatch instanceof WhitelistFilter)
return;
details.responseHeaders.push({
name: "Content-Security-Policy",
value: cspMatch.csp
});
« no previous file with comments | « lib/contentFiltering.js ('k') | lib/devtools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld