1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 19:33:01 +01:00

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

View File

@ -812,6 +812,12 @@ var filterDocument = (function() {
};
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);
if ( hostname === '' ) { return; }