Open Bug 2086596 Opened 1 month ago Updated 1 month ago

[Weekly Privacy Report] "View trackers" action button is missing when expanding the notification

Categories

(Firefox for Android :: Experimentation and Telemetry, defect)

All
Android
defect

Tracking

()

Tracking Status
firefox160 --- affected
firefox161 --- affected

People

(Reporter: apetridean, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce

  1. Trigger the weekly privacy report notification.
  2. 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>

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 a NotificationCompat.Action that uses the same privacy_report deep-link PendingIntent.getActivity as the body tap. Keep it an activity intent rather than a receiver trampoline, as the comment in that file explains. You can either give createBaseNotification an actions parameter or add the action on top of the builder there.
    • MessageNotificationWorker.kt passes its arguments to createBaseNotification positionally, so a new parameter has to go after bigTextStyle.
  • setAutoCancel(true) does not dismiss the notification when an action is tapped, and the privacy_report branch 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 record privacy_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 is private today, so it needs to be exposed.
  • Button taps will be recorded as privacy_report_tapped with the existing privacy_report_notification source. 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.

You need to log in before you can comment on or make changes to this bug.