Files
sousa-gecko/browser/components/protections
Maxx Crawford 3b7003f055 Bug 2050518 - Add getTodayStats() to PrivacyMetricsService for today's tracking-protection counts r=timhuang
PrivacyMetricsService only exposes getWeeklyStats() (a 7-day aggregate). Add getTodayStats(), which returns today's per-category counts in the same PrivacyMetricsStats shape, reusing _aggregateStats(). It queries TrackingDBService.getEventsByDateRange(now, now): the query day-truncates both bounds and events are bucketed by UTC date, so this selects exactly today's row.

Differential Revision: https://phabricator.services.mozilla.com/D308833
2026-06-29 00:05:49 +00:00
..
…
…
…