Index: lib/requestBlocker.js |
=================================================================== |
--- a/lib/requestBlocker.js |
+++ b/lib/requestBlocker.js |
@@ -24,16 +24,20 @@ |
let {defaultMatcher} = require("matcher"); |
let {FilterNotifier} = require("filterNotifier"); |
let {Prefs} = require("prefs"); |
let {checkWhitelisted, getKey} = require("whitelisting"); |
let {stringifyURL, extractHostFromFrame, isThirdParty} = require("url"); |
let {port} = require("messaging"); |
let devtools = require("devtools"); |
+// Patch RegExpFilter.typeMap with WEBRTC, because abp2blocklist needs it and |
+// our version of core doesn't support it yet. See issue #5464. |
+RegExpFilter.typeMap.WEBRTC = 256; |
+ |
ext.webRequest.getIndistinguishableTypes().forEach(types => |
{ |
for (let i = 1; i < types.length; i++) |
RegExpFilter.typeMap[types[i]] = RegExpFilter.typeMap[types[0]]; |
}); |
function onBeforeRequestAsync(page, url, type, docDomain, |
thirdParty, sitekey, |