tor-browser

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

commit df79ba296568c3aa7b4989f7ef26a049f5452cfb
parent b7eaa282c99c508970c9337b100db2504da6347a
Author: Cristina Horotan <chorotan@mozilla.com>
Date:   Fri,  7 Nov 2025 20:39:09 +0200

Revert "Bug 1998043 - Remove mobile adoption callout from tree r=omc-reviewers,emcminn" for causing bc failures on browser_all_files_referenced.js

This reverts commit 97d58138ea79312f780512b1fed5cba370a0b8af.

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

diff --git a/browser/components/asrouter/modules/FeatureCalloutMessages.sys.mjs b/browser/components/asrouter/modules/FeatureCalloutMessages.sys.mjs @@ -263,6 +263,206 @@ const MESSAGES = () => { }, skip_in_tests: "it's not tested in automation", }, + { + id: "DESKTOP_TO_MOBILE_ADOPTION_SIGNED_INTO_ACCOUNT_NON_EU", + template: "feature_callout", + groups: ["cfr"], + content: { + id: "DESKTOP_TO_MOBILE_ADOPTION_SIGNED_INTO_ACCOUNT_NON_EU", + padding: "16", + template: "multistage", + backdrop: "transparent", + transitions: false, + disableHistoryUpdates: true, + screens: [ + { + id: "DESKTOP_TO_MOBILE_ADOPTION_SIGNED_INTO_ACCOUNT_NON_EU", + anchors: [ + { + selector: "#fxa-toolbar-menu-button", + panel_position: { + anchor_attachment: "bottomcenter", + callout_attachment: "topright", + }, + }, + ], + content: { + position: "callout", + width: "400px", + padding: 16, + title: { + string_id: "desktop-to-mobile-headline", + marginInline: "4px 0", + }, + logo: { + height: "128px", + imageURL: + "chrome://browser/content/asrouter/assets/desktop-to-mobile-banner.svg", + }, + subtitle: { + string_id: "desktop-to-mobile-subtitle", + marginBlock: "-44px 0", + marginInline: "84px 0", + }, + title_logo: { + height: "103px", + width: "75px", + alignment: "top", + marginBlock: "40px 0", + marginInline: "32px", + imageURL: + "chrome://browser/content/asrouter/assets/desktop-to-mobile-non-eu-QR.svg", + alt: { + string_id: "desktop-to-mobile-qr-code-alt", + }, + }, + additional_button: { + action: { + dismiss: true, + }, + label: { + string_id: "dismiss-button-label", + fontWeight: "590", + fontSize: "11px", + }, + style: "secondary", + }, + secondary_button: { + action: { + type: "OPEN_ABOUT_PAGE", + data: { + args: "preferences?action=pair#sync", + where: "tab", + }, + dismiss: true, + }, + label: { + string_id: "sync-to-mobile-button-label", + fontWeight: "590", + fontSize: "11px", + }, + style: "secondary", + }, + }, + }, + ], + }, + frequency: { + custom: [ + { + cap: 1, + period: 2628000000, + }, + ], + lifetime: 3, + }, + trigger: { + id: "defaultBrowserCheck", + }, + targeting: + "(region in ['CA', 'US']) && isFxASignedIn && previousSessionEnd && !willShowDefaultPrompt && !activeNotifications && userPrefs.cfrFeatures && !(sync || {}).mobileDevices", + skip_in_tests: "it's not tested in automation", + }, + { + id: "DESKTOP_TO_MOBILE_ADOPTION_SIGNED_INTO_ACCOUNT_EU", + template: "feature_callout", + groups: ["cfr"], + content: { + id: "DESKTOP_TO_MOBILE_ADOPTION_SIGNED_INTO_ACCOUNT_EU", + padding: "16", + template: "multistage", + backdrop: "transparent", + transitions: false, + disableHistoryUpdates: true, + screens: [ + { + id: "DESKTOP_TO_MOBILE_ADOPTION_SIGNED_INTO_ACCOUNT_EU", + anchors: [ + { + selector: "#fxa-toolbar-menu-button", + panel_position: { + anchor_attachment: "bottomcenter", + callout_attachment: "topright", + }, + }, + ], + content: { + position: "callout", + width: "400px", + padding: 16, + title: { + string_id: "desktop-to-mobile-headline", + marginInline: "4px 0", + }, + logo: { + height: "128px", + imageURL: + "chrome://browser/content/asrouter/assets/desktop-to-mobile-banner.svg", + }, + subtitle: { + string_id: "desktop-to-mobile-subtitle", + marginBlock: "-44px 0", + marginInline: "84px 0", + }, + title_logo: { + height: "103px", + width: "75px", + alignment: "top", + marginBlock: "40px 0", + marginInline: "32px", + imageURL: + "chrome://browser/content/asrouter/assets/desktop-to-mobile-eu-QR.svg", + alt: { + string_id: "desktop-to-mobile-qr-code-alt", + }, + }, + additional_button: { + action: { + dismiss: true, + }, + label: { + string_id: "dismiss-button-label", + fontWeight: "590", + fontSize: "11px", + }, + style: "secondary", + }, + secondary_button: { + action: { + type: "OPEN_ABOUT_PAGE", + data: { + args: "preferences?action=pair#sync", + where: "tab", + }, + dismiss: true, + }, + label: { + string_id: "sync-to-mobile-button-label", + fontWeight: "590", + fontSize: "11px", + }, + style: "secondary", + }, + }, + }, + ], + }, + frequency: { + custom: [ + { + cap: 1, + period: 2628000000, + }, + ], + lifetime: 3, + }, + trigger: { + id: "defaultBrowserCheck", + }, + targeting: + "(locale in ['de', 'en-CA', 'en-GB', 'en-US', 'fr']) && (region in ['DE', 'FR', 'GB']) && isFxASignedIn && previousSessionEnd && !willShowDefaultPrompt && !activeNotifications && userPrefs.cfrFeatures && !(sync || {}).mobileDevices", + skip_in_tests: "it's not tested in automation", + }, // Appears the first time a user uses the "save and close" action on a tab group, // anchored to the alltabs-button. Will only show if at least an hour has passed // since the CREATE_TAB_GROUP callout showed.