[Weekly Privacy Report] "View trackers" action button is missing when expanding the notification
Categories
(Firefox for Android :: Experimentation and Telemetry, defect)
Tracking
()
People
(Reporter: apetridean, Unassigned)
References
(Blocks 1 open bug)
Details
Steps to reproduce
- Trigger the weekly privacy report notification.
- Expand the notification shade and tap the chevron to expand the Firefox notification.
Expected Result:
„View trackers” action button appears below the notification body text (as specified in Figma spec).
Actual Result:
The notification expands to show the text, but no action button/link is present
Device information
Firefox version: Nightly 161.0a1from 27.10.2026, Firefox 160.0a1
Android device model: Xiaomi Pad5 (Android 13), Pixel 7Pro (Android 17)
Any additional information?
Screen recording: <video>
Comment 1•1 month ago
|
||
| frontend-triage | ||
The button was never built. It is not a regression. PrivacyReportNotificationHelper.kt builds the notification through createBaseNotification in NotificationBase.kt, which only sets the title, the text and the content/delete intents. Nothing calls addAction, and strings.xml has no "View trackers" string. The feature landed in bug 2060524 without this action.
Suggested fix
- Add a localizable string, e.g.
notification_privacy_report_action_view_trackers. - In
buildPrivacyReportNotification, add aNotificationCompat.Actionthat uses the sameprivacy_reportdeep-linkPendingIntent.getActivityas the body tap. Keep it an activity intent rather than a receiver trampoline, as the comment in that file explains. You can either givecreateBaseNotificationanactionsparameter or add the action on top of the builder there.- MessageNotificationWorker.kt passes its arguments to
createBaseNotificationpositionally, so a new parameter has to go afterbigTextStyle.
- MessageNotificationWorker.kt passes its arguments to
setAutoCancel(true)does not dismiss the notification when an action is tapped, and theprivacy_reportbranch in HomeDeepLinkIntentProcessor.kt never cancels it. As things stand, the notification would stay in the shade after a button tap, and swiping it away later would also recordprivacy_report_notification_dismissed. The fix is to cancel it by tag/id in that branch, the same way CrashReporterActivity.kt does for CrashNotification.kt. The tag isprivatetoday, so it needs to be exposed.- Button taps will be recorded as
privacy_report_tappedwith the existingprivacy_report_notificationsource. A distinct source value would need data review.
Tests: extend the notification tests in PrivacyReportNotificationHelperTest.kt to assert one action with the new title and the deep-link intent. If the cancel goes in the deep-link branch, also extend process privacy_report deep link in HomeDeepLinkIntentProcessorTest.kt.
Open question for UX: should the no-trackers variant show the button too? Its body text is empty in PrivacyReportNotificationContent.kt.
Suggested severity: S3. The notification is missing an action the spec calls for, but tapping the notification body already opens the same Privacy Dashboard.
If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.
Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.
Description
•