Implement privacy metrics widget data service and IPC layer
Categories
(Firefox :: Protections UI, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: jhan, Assigned: jhan)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Create the backend foundation for collecting and serving tracking protection statistics. This includes:
- PrivacyMetricsService that wraps TrackingDBService to query weekly block counts by category (trackers, fingerprinters, cookies, etc.)
- PrivacyMetrics JSWindowActor pair for cross-process communication (parent process has data, content process needs it)
- Basic unit tests for service logic and actor communication
This adds a new PrivacyMetricsService that wraps TrackingDBService to provide
weekly tracking protection statistics with 30-minute caching. The service
aggregates data by category (trackers, cookies, fingerprinters, cryptominers,
social trackers) for display in the privacy metrics widget.
Includes comprehensive xpcshell tests covering empty stats, aggregation,
multi-day data, caching behavior, and 7-day window filtering.
Updated•3 months ago
|
This patch adds backend infrastructure for the privacy metrics widget:
PrivacyMetricsService wraps TrackingDBService to provide weekly tracking
protection stats aggregated by category (trackers, cookies, fingerprinters,
cryptominers, social trackers).
JSWindowActor IPC layer provides PrivacyMetricsParent/Child for content pages
to access the service. Registered in DesktopActorRegistry for about:protections
with an enablePreference gate. The service is also accessible via RPMSendQuery
from AboutProtectionsParent.
The actor throws an error for private browsing contexts (callers should check
PBM status themselves via PrivateBrowsingUtils).
Includes xpcshell tests for the service and browser tests for the actors.
Updated•3 months ago
|
Comment 4•1 month ago
|
||
Revert for causing linting failures on privacy-metrics-card.css.
This is also causing bc failures like these: https://treeherder.mozilla.org/logviewer?job_id=553536646&repo=autoland&task=Gld_H9muSZSdgOcdNRGAHQ.0&lineNumber=2935
Updated•1 month ago
|
Updated•6 days ago
|
Description
•