mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
this fixes #978
This commit is contained in:
parent
559d3a30ac
commit
2e8adfe944
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user