From eb7d95aa7b4ee5b7799dfdb8362febf01f5edb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org> Date: Mon, 27 Mar 2023 20:51:26 +0000 Subject: [PATCH] firefox: remove recommendation for android and ios --- .../Remove_Andoir_and_iOS_promotion.patch | 75 +++++++++++++++++++ helpers/make-firefox | 3 +- 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 helpers/DATA/firefox/patch_changes/Remove_Andoir_and_iOS_promotion.patch diff --git a/helpers/DATA/firefox/patch_changes/Remove_Andoir_and_iOS_promotion.patch b/helpers/DATA/firefox/patch_changes/Remove_Andoir_and_iOS_promotion.patch new file mode 100644 index 00000000..0bef6178 --- /dev/null +++ b/helpers/DATA/firefox/patch_changes/Remove_Andoir_and_iOS_promotion.patch @@ -0,0 +1,75 @@ +diff --git a/browser/components/preferences/sync.inc.xhtml b/browser/components/preferences/sync.inc.xhtml +index 7d37d26..4ebbc06 100644 +--- a/browser/components/preferences/sync.inc.xhtml ++++ b/browser/components/preferences/sync.inc.xhtml +@@ -35,22 +35,6 @@ + </hbox> + </vbox> + </hbox> +- <label class="fxaMobilePromo" data-l10n-id="sync-mobile-promo"> +- <html:img +- src="chrome://browser/skin/logo-android.svg" +- data-l10n-name="android-icon" +- class="androidIcon"/> +- <html:a +- data-l10n-name="android-link" +- class="fxaMobilePromo-android text-link" target="_blank"/> +- <html:img +- src="chrome://browser/skin/logo-ios.svg" +- data-l10n-name="ios-icon" +- class="iOSIcon"/> +- <html:a +- data-l10n-name="ios-link" +- class="fxaMobilePromo-ios text-link" target="_blank"/> +- </label> + </groupbox> + + <vbox id="hasFxaAccount"> +diff --git a/browser/locales/en-US/browser/preferences/preferences.ftl b/browser/locales/en-US/browser/preferences/preferences.ftl +index 1b29e8d..6f7566c 100644 +--- a/browser/locales/en-US/browser/preferences/preferences.ftl ++++ b/browser/locales/en-US/browser/preferences/preferences.ftl +@@ -714,16 +714,6 @@ sync-signedout-account-signin2 = + .label = Sign in to { -sync-brand-short-name }… + .accesskey = i + +-# This message contains two links and two icon images. +-# `<img data-l10n-name="android-icon"/>` - Android logo icon +-# `<a data-l10n-name="android-link">` - Link to Android Download +-# `<img data-l10n-name="ios-icon">` - iOS logo icon +-# `<a data-l10n-name="ios-link">` - Link to iOS Download +-# +-# They can be moved within the sentence as needed to adapt +-# to your language, but should not be changed or translated. +-sync-mobile-promo = Download Firefox for <img data-l10n-name="android-icon"/> <a data-l10n-name="android-link">Android</a> or <img data-l10n-name="ios-icon"/> <a data-l10n-name="ios-link">iOS</a> to sync with your mobile device. +- + ## Sync Account - Signed in + + sync-profile-picture = +diff --git a/browser/components/protections/content/vpn-card.mjs b/browser/components/protections/content/vpn-card.mjs +index 2417f1a641..698c48ccc3 100644 +--- a/browser/components/protections/content/vpn-card.mjs ++++ b/browser/components/protections/content/vpn-card.mjs +@@ -23,22 +23,6 @@ export default class VPNCard { + vpnLink.addEventListener("click", () => { + this.doc.sendTelemetryEvent("click", "vpn_card_link"); + }); +- let androidVPNAppLink = document.getElementById( +- "vpn-google-playstore-link" +- ); +- androidVPNAppLink.href = RPMGetStringPref( +- "browser.contentblocking.report.vpn-android.url" +- ); +- androidVPNAppLink.addEventListener("click", () => { +- document.sendTelemetryEvent("click", "vpn_app_link_android"); +- }); +- let iosVPNAppLink = document.getElementById("vpn-app-store-link"); +- iosVPNAppLink.href = RPMGetStringPref( +- "browser.contentblocking.report.vpn-ios.url" +- ); +- iosVPNAppLink.addEventListener("click", () => { +- document.sendTelemetryEvent("click", "vpn_app_link_ios"); +- }); + + const vpnBanner = this.doc.querySelector(".vpn-banner"); + const exitIcon = vpnBanner.querySelector(".exit-icon"); diff --git a/helpers/make-firefox b/helpers/make-firefox index d5cdc665..6f64851f 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -19,7 +19,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=100 +VERSION=101 EXTERNAL='deb-src http://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu $UPSTREAM main' REPOKEY=9BDB3D89CE49EC21 @@ -429,6 +429,7 @@ cp -a $DATA/android/res/main/* mobile/android/geckoview/src/main/res #Fixes by patch on source. ##Firefox v100, based on parabola 9004-FSDG-misc.patch patch --no-backup-if-mismatch -p1 < $DATA/patch_changes/Remove_moreFromMozilla_Focus_and_Klar.patch +patch --no-backup-if-mismatch -p1 < $DATA/patch_changes/Remove_Andoir_and_iOS_promotion.patch # Postinst script to manage profile migration and system links echo ' -- GitLab