From f1805d8175ecb636e671cc1e61b043121aea0cdf Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 13 May 2017 08:51:56 -0400 Subject: [PATCH] fix #2607 --- src/js/messaging.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index b1d30a2fa..8838576a1 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -492,17 +492,14 @@ var filterRequests = function(pageStore, details) { // Create evaluation context var context = pageStore.createContextFromFrameHostname(details.pageHostname), - request, r, + request, i = requests.length; while ( i-- ) { request = requests[i]; context.requestURL = punycodeURL(request.url); context.requestHostname = hostnameFromURI(context.requestURL); context.requestType = tagNameToRequestTypeMap[request.tag]; - r = pageStore.filterRequest(context); - if ( typeof r !== 'string' || r.charCodeAt(1) !== 98 /* 'b' */ ) { - continue; - } + if ( pageStore.filterRequest(context) !== 1 ) { continue; } // Redirected? (We do not hide redirected resources.) if ( redirectEngine.matches(context) ) { continue;