From 5f66f03c698008205c5b35aece02a12e65981b1b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 24 Oct 2018 20:06:27 -0300 Subject: [PATCH] regression from cabb0d36b679: avoid counting "badfilter" entries as actual filters --- src/js/static-net-filtering.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 2a8d03b77..00fd92096 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -2274,17 +2274,14 @@ FilterContainer.prototype.fromCompiledContent = function(reader) { } } - // 1 = network filters: bad filters + // 1 = network filters: bad filter directives // Since we are going to keep bad filter fingerprints around, we ensure // they are "detached" from the parent string from which they are sliced. // We keep bad filter fingerprints around to use them when user // incrementally add filters (through "Block element" for example). reader.select(1); while ( reader.next() ) { - this.acceptedCount += 1; - if ( this.badFilters.has(reader.line) ) { - this.discardedCount += 1; - } else { + if ( this.badFilters.has(reader.line) === false ) { this.badFilters.add(µb.orphanizeString(reader.line)); } }