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

Unified Diff: lib/requestBlocker.js

Issue 29367316: Issue 4722 - Drop support for Chrome 41 - 48 (Closed)
Patch Set: Addressed nit Created Dec. 16, 2016, 10:26 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/polyfills/fetch.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 0b3291a332dd1e949285dc8a532df0d09ea96302..91df223d5a1b82d6684d5d20f8a8c44ee7c4ed87 100644
--- a/lib/requestBlocker.js
+++ b/lib/requestBlocker.js
@@ -29,11 +29,8 @@ let {stringifyURL, extractHostFromFrame, isThirdParty} = require("url");
let {port} = require("messaging");
let devtools = require("devtools");
-ext.webRequest.getIndistinguishableTypes().forEach(types =>
-{
- for (let i = 1; i < types.length; i++)
- RegExpFilter.typeMap[types[i]] = RegExpFilter.typeMap[types[0]];
-});
+// Chrome can't distinguish between OBJECT_SUBREQUEST and OBJECT requests.
+RegExpFilter.typeMap.OBJECT_SUBREQUEST = RegExpFilter.typeMap.OBJECT;
function onBeforeRequestAsync(page, url, type, docDomain,
thirdParty, sitekey,
« no previous file with comments | « lib/polyfills/fetch.js ('k') | metadata.chrome » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld