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: Addressed some final nits Created March 20, 2018, 9:01 a.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') | metadata.chrome » ('j') | 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 56f6313cea25fe63ebfef2c5b0498a70f989117b..27814c434c7efd24f6fa816b95019079cbf8fcdd 100644
--- a/lib/requestBlocker.js
+++ b/lib/requestBlocker.js
@@ -68,10 +68,10 @@ exports.filterTypes = new Set(function*()
yield "WEBSOCKET";
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') | metadata.chrome » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld