From e81994a748a4e834e8e7f2726f7581edd7a6b053 Mon Sep 17 00:00:00 2001 From: Samuel Oldham <77629938+SO9010@users.noreply.github.com> Date: Mon, 12 May 2025 14:03:11 +0100 Subject: [PATCH] Add patch fix #7701 This fixes this issue by just setting it to removed in the preferences automatically, meaning that the users will never see it. This made more sense than having it rewritten just for this page. But if we think linking to Firefox mobile here is necessary, please let me know. Signed-off-by: Samuel Oldham <77629938+SO9010@users.noreply.github.com> --- .../protections/content/protections.mjs.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/browser/components/protections/content/protections.mjs.patch diff --git a/src/browser/components/protections/content/protections.mjs.patch b/src/browser/components/protections/content/protections.mjs.patch new file mode 100644 index 000000000..ba43d3f67 --- /dev/null +++ b/src/browser/components/protections/content/protections.mjs.patch @@ -0,0 +1,15 @@ +diff --git a/browser/components/protections/content/protections.mjs b/browser/components/protections/content/protections.mjs +index 597b6d93ec..d813ef24bd 100644 +--- a/browser/components/protections/content/protections.mjs ++++ b/browser/components/protections/content/protections.mjs +@@ -391,6 +391,10 @@ document.addEventListener("DOMContentLoaded", () => { + }).then(createGraph); + + let exitIcon = document.querySelector("#mobile-hanger .exit-icon"); ++ ++ // Enforce the mobile app promotion to be hidden on load. ++ RPMSetPref("browser.contentblocking.report.show_mobile_app", false); ++ + // hide the mobile promotion and keep hidden with a pref. + exitIcon.addEventListener("click", () => { + RPMSetPref("browser.contentblocking.report.show_mobile_app", false);