From 613ff9cc9b4c5f86c83de9eac71194aa056111b6 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 3 Feb 2018 09:34:27 -0500 Subject: [PATCH] tentatively fix #3478: need feedback from reporter --- src/js/traffic.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/traffic.js b/src/js/traffic.js index 9a7dbf97b..456dfa8b1 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -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; }