Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/child/requestNotifier.js

Issue 29364102: Issue 4658 - Incorporate element hiding emulation filters (Closed) Base URL: https://bitbucket.org/fhd/adblockplus
Patch Set: Created Nov. 24, 2016, 9:41 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/child/requestNotifier.js
===================================================================
--- a/lib/child/requestNotifier.js
+++ b/lib/child/requestNotifier.js
@@ -357,25 +357,25 @@
hidden: 0,
blocked: 0,
whitelisted: 0,
filters: {}
});
}
let stats = windowStats.get(topWnd.document);
- if (filterType != "elemhide" && filterType != "elemhideexception" && filterType != "cssproperty")
+ if (filterType != "elemhide" && filterType != "elemhideexception" && filterType != "elemhideemulation")
stats.items++;
if (filter)
{
if (filterType == "blocking")
stats.blocked++;
else if (filterType == "whitelist" || filterType == "elemhideexception")
stats.whitelisted++;
- else if (filterType == "elemhide" || filterType == "cssproperty")
+ else if (filterType == "elemhide" || filterType == "elemhideemulation")
stats.hidden++;
if (filter in stats.filters)
stats.filters[filter]++;
else
stats.filters[filter] = 1;
}

Powered by Google App Engine
This is Rietveld