1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00
This commit is contained in:
gorhill 2015-11-26 11:11:28 -05:00
parent 559d3a30ac
commit 2e8adfe944

View File

@ -533,6 +533,12 @@ var filterRequests = function(pageStore, details) {
request = requests[i];
context.requestURL = vAPI.punycodeURL(request.url);
context.requestHostname = µburi.hostnameFromURI(request.url);
// https://github.com/gorhill/uBlock/issues/978
// Ignore invalid URLs: these would not occur on the HTTP
// observer side.
if ( context.requestHostname === '' ) {
continue;
}
context.requestType = tagNameToRequestTypeMap[request.tagName];
if ( isBlockResult(pageStore.filterRequest(context)) ) {
request.collapse = true;