This commit is contained in:
gorhill 2017-05-13 08:51:56 -04:00
parent 721993b488
commit f1805d8175
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 5 deletions

View File

@ -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;