tentatively fix #3478: need feedback from reporter

This commit is contained in:
Raymond Hill 2018-02-03 09:34:27 -05:00
parent 026286977e
commit 613ff9cc9b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 6 additions and 0 deletions

View File

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