mirror of https://github.com/gorhill/uBlock.git
tentatively fix #3478: need feedback from reporter
This commit is contained in:
parent
026286977e
commit
613ff9cc9b
|
@ -812,6 +812,12 @@ var filterDocument = (function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
return function(pageStore, details) {
|
return function(pageStore, details) {
|
||||||
|
// https://github.com/gorhill/uBlock/issues/3478
|
||||||
|
var statusCode = details.statusCode || 0;
|
||||||
|
if ( statusCode !== 0 && (statusCode < 200 || statusCode >= 300) ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var hostname = µb.URI.hostnameFromURI(details.url);
|
var hostname = µb.URI.hostnameFromURI(details.url);
|
||||||
if ( hostname === '' ) { return; }
|
if ( hostname === '' ) { return; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue