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, |