Index: lib/contentPolicy.js |
=================================================================== |
--- a/lib/contentPolicy.js |
+++ b/lib/contentPolicy.js |
@@ -108,7 +108,10 @@ |
function addHit(frameIndex, contentType, docDomain, thirdParty, location, filter) |
{ |
if (filter && !isPrivate) |
- FilterStorage.increaseHitCount(filter); |
+ { |
+ let topWindowLocation = frames[frames.length-1].location; |
+ FilterStorage.increaseHitCount(filter, getHostname(topWindowLocation)); |
Wladimir Palant
2016/02/15 12:25:40
getHostname(topWindowLocation) should be identical
saroyanm
2016/02/19 17:38:11
Done.
|
+ } |
hits.push({ |
frameIndex, contentType, docDomain, thirdParty, location, |
filter: filter ? filter.text : null, |