From b2dc05596cab8a5950dff319cf111b7613949937 Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Sat, 10 Aug 2024 12:21:15 +0200 Subject: [PATCH] update/fix broken patches for 129.0 --- patches/context-menu.patch | 16 ++++---- ...sable-data-reporting-at-compile-time.patch | 8 ++-- .../fullpage-translations-customization.patch | 40 +++++++++++++++---- 3 files changed, 45 insertions(+), 19 deletions(-) diff --git a/patches/context-menu.patch b/patches/context-menu.patch index da19aa6..b0e9fa4 100644 --- a/patches/context-menu.patch +++ b/patches/context-menu.patch @@ -1,24 +1,24 @@ diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc -index 39a139f..c565bce 100644 +index 3a58888b28b4..471c238aa284 100644 --- a/browser/base/content/browser-context.inc +++ b/browser/base/content/browser-context.inc -@@ -100,9 +100,6 @@ +@@ -107,9 +107,6 @@ + /> - +- /> -@@ -256,9 +253,6 @@ + /> +@@ -264,9 +261,6 @@ + /> - +- /> + id="translations-panel-settings-never-translate-site"/> + ++ id="translations-panel-disable-translations"/> +diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js +index fec5aa685ea7..92082d259903 100644 --- a/browser/components/preferences/main.js +++ b/browser/components/preferences/main.js -@@ -144,6 +144,10 @@ Preferences.addAll([ +@@ -145,6 +145,10 @@ Preferences.addAll([ { id: "dom.ipc.processCount.web", type: "int" }, { id: "layers.acceleration.disabled", type: "bool", inverted: true }, @@ -50,7 +70,7 @@ // Files and Applications { id: "pref.downloads.disable_button.edit_actions", type: "bool" }, -@@ -325,6 +329,22 @@ var gMainPane = { +@@ -326,6 +330,22 @@ var gMainPane = { gMainPane.initTranslations(); @@ -73,7 +93,7 @@ if ( Services.prefs.getBoolPref( "media.videocontrols.picture-in-picture.enabled" -@@ -789,6 +809,10 @@ var gMainPane = { +@@ -793,6 +813,10 @@ var gMainPane = { document.getElementById("checkSpelling"), () => this.writeCheckSpelling() ); @@ -84,7 +104,7 @@ Preferences.addSyncFromPrefListener( document.getElementById("alwaysAsk"), () => this.readUseDownloadDir() -@@ -1019,24 +1043,33 @@ var gMainPane = { +@@ -1023,24 +1047,33 @@ var gMainPane = { document.getElementById("zoomBox").hidden = false; }, @@ -122,9 +142,11 @@ class TranslationsState { /** * The fully initialized state. +diff --git a/browser/components/translations/content/fullPageTranslationsPanel.js b/browser/components/translations/content/fullPageTranslationsPanel.js +index 0c8288af9aca..05e49c06ff63 100644 --- a/browser/components/translations/content/fullPageTranslationsPanel.js +++ b/browser/components/translations/content/fullPageTranslationsPanel.js -@@ -1225,6 +1225,15 @@ var FullPageTranslationsPanel = new (class { +@@ -1220,6 +1220,15 @@ var FullPageTranslationsPanel = new (class { ); } @@ -140,6 +162,8 @@ /** * Redirect the user to about:preferences */ +diff --git a/browser/locales/en-US/browser/translations.ftl b/browser/locales/en-US/browser/translations.ftl +index e2aca3eabbe1..92d738fdf6e5 100644 --- a/browser/locales/en-US/browser/translations.ftl +++ b/browser/locales/en-US/browser/translations.ftl @@ -58,6 +58,9 @@ translations-panel-settings-never-translate-unknown-language =