1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00
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

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;