Add number of trackers blocked to ASRouterTargeting.jsm
Categories
(Firefox :: Messaging System, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | unaffected |
firefox70 | --- | affected |
People
(Reporter: k88hudson, Unassigned)
References
Details
In order to support some targeting around suggesting the protection report in the What's new Panel, we would need to expose a "number of trackers blocked" in ASRouterTargeting.
To be able to do this, we would need to be able to call a function that providers this value (see https://searchfox.org/mozilla-central/source/browser/components/newtab/lib/ASRouterTargeting.jsm#373 for example)
Reporter | ||
Comment 1•5 years ago
|
||
Does this sound like something that is already available, or would some additional work need to be done to expose this information?
Comment 2•5 years ago
|
||
(In reply to Kate Hudson :k88hudson from comment #1)
Does this sound like something that is already available, or would some additional work need to be done to expose this information?
This is already available, you can query the numbers of trackers blocked between two dates, or the total. These can be accessed using TrackingDBService.sumAllEvents();
or TrackingDBService.getEventsByDateRange(from, to);
.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
This was added in bug 1571763 as totalBlockedCount
Description
•