tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 99badd0a1dbb6d7d113a18f695b07779f056f76a
parent 8403eccdc0e46ab9f5152e0763b90b463e4aaf54
Author: mimi <nsauermann@mozilla.com>
Date:   Wed,  7 Jan 2026 22:43:33 +0000

Bug 2009037 - Adds Omnibus Privacy Notice Infobar messaging r=omc-reviewers,jprickett

Landing the following [rollout](https://docs.google.com/document/d/1op56Trt2Jo0k_1bVl_Rr5JL4tBqR5Uc0p1W-2UqALdQ/edit?tab=t.0) into tree to capture users who have studies disabled. Changes from the rollout include:
* Adding the cfr message group
* Removing the linux check - linux users who are eligible should see the infobar
* Preventing the learn more and privacy notice link from dismissing the infobar

Differential Revision: https://phabricator.services.mozilla.com/D278197

Diffstat:
Mbrowser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+), 0 deletions(-)

diff --git a/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs b/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs @@ -2965,6 +2965,76 @@ const BASE_MESSAGES = () => [ id: "selectableProfilesUpdated", }, }, + { + id: "updated-privacy-notice-notification-infobar", + groups: ["cfr"], + template: "infobar", + content: { + impression_action: { + type: "MULTI_ACTION", + orderedExecution: true, + data: { + actions: [ + { + type: "SET_PREF", + data: { + pref: { + name: "termsofuse.firstAcceptedDate", + value: { + copyFromPref: "termsofuse.acceptedDate", + }, + }, + }, + }, + { + type: "SET_PREF", + data: { + pref: { + name: "termsofuse.acceptedDate", + value: { + timestamp: true, + }, + }, + }, + }, + ], + }, + }, + text: { + string_id: "existing-user-privacy-notice-update-message", + args: { where: "tabshifted" }, + }, + linkUrls: { + "privacy-notice-link": "https://www.mozilla.org/privacy/firefox/next/", + }, + type: "tab", + buttons: [ + { + label: { + string_id: "existing-user-tou-learn-more", + }, + action: { + type: "OPEN_URL", + data: { + where: "tabshifted", + args: "https://www.mozilla.org/privacy/firefox/update/", + }, + dismiss: false, + }, + accessKey: "L", + }, + ], + }, + trigger: { + id: "defaultBrowserCheck", + }, + frequency: { + lifetime: 1, + }, + priority: 2, + targeting: + "('termsofuse.acceptedDate'|preferenceValue != '0') && (('termsofuse.acceptedDate'|preferenceValue * 1) < 1765972800000)", + }, ]; const PREONBOARDING_MESSAGES = () => [