Index: lib/requestBlocker.js |
=================================================================== |
--- a/lib/requestBlocker.js |
+++ b/lib/requestBlocker.js |
@@ -174,17 +174,17 @@ |
FilterNotifier.on("filter.disabled", arg => onFilterChange(arg, true)); |
FilterNotifier.on("load", onFilterChange); |
port.on("request.blockedByWrapper", (msg, sender) => |
{ |
// Chrome 58 onwards directly supports WebSocket blocking, so we can ignore |
// messages from the wrapper here (see https://crbug.com/129353). Hopefully |
// WebRTC will be supported soon too (see https://crbug.com/707683). |
- if (msg.requestType in chrome.webRequest.ResourceType) |
+ if (msg.requestType.toUpperCase() in chrome.webRequest.ResourceType) |
return false; |
return ext.webRequest.onBeforeRequest._dispatch( |
new URL(msg.url), |
msg.requestType, |
sender.page, |
sender.frame |
).includes(false); |