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

Unified Diff: lib/requestBlocker.js

Issue 29680696: [$csp4 adblockpluschrome] Issue 5241 - Add support for Content Security Policy filters (Closed)
Patch Set: Rebased Created March 26, 2018, 6:22 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/devtools.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/requestBlocker.js
diff --git a/lib/requestBlocker.js b/lib/requestBlocker.js
index 1fdace59cf4d02b8d53c5536eaba7b1c9e90b644..381e280d165248e7b057186d34d93f231bccf953 100644
--- a/lib/requestBlocker.js
+++ b/lib/requestBlocker.js
@@ -67,10 +67,10 @@ exports.filterTypes = new Set(function*()
// lacking support to block this kind of a request.
yield "WEBRTC";
- // POPUP and ELEMHIDE filters aren't blocked on the request level but by other
- // means. They don't have a corresponding value in webRequest.ResourceType.
+ // POPUP, CSP and ELEMHIDE filters aren't mapped to resource types.
yield "POPUP";
yield "ELEMHIDE";
+ yield "CSP";
}());
function onBeforeRequestAsync(page, url, type, docDomain,
« no previous file with comments | « lib/devtools.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld