firefox: update to 151.0.1 and static wallpaper setup

This commit is contained in:
Luis Guzmán 2026-05-27 06:03:24 -06:00
parent 1b753d044e
commit fa802e0ea1
15 changed files with 2199 additions and 49 deletions

View file

@ -61,19 +61,6 @@ index ba47adb6..c4b29ec4 100644
], ],
}; };
diff --git a/browser/components/asrouter/modules/FeatureCalloutMessages.sys.mjs b/browser/components/asrouter/modules/FeatureCalloutMessages.sys.mjs
index 29d2ca46..41b65ac4 100644
--- a/browser/components/asrouter/modules/FeatureCalloutMessages.sys.mjs
+++ b/browser/components/asrouter/modules/FeatureCalloutMessages.sys.mjs
@@ -885,7 +885,7 @@ const MESSAGES = () => {
dismiss: true,
type: "OPEN_URL",
data: {
- args: "https://addons.mozilla.org/en-US/firefox/collections/4757633/36d285535db74c6986abbeeed3e214/?page=1&collection_sort=added",
+ args: "https://gnuzilla.gnu.org/",
where: "tabshifted",
},
},
diff --git a/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs b/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs diff --git a/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs b/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs
index abc6db68..0c86955f 100644 index abc6db68..0c86955f 100644
--- a/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs --- a/browser/components/asrouter/modules/OnboardingMessageProvider.sys.mjs

View file

@ -19,43 +19,43 @@ index c0094fe0..08856c78 100644
</groupbox> </groupbox>
</html:template> </html:template>
diff --git a/browser/extensions/newtab/lib/AboutPreferences.sys.mjs b/browser/extensions/newtab/lib/AboutPreferences.sys.mjs diff --git a/browser/extensions/newtab/lib/AboutPreferences.sys.mjs b/browser/extensions/newtab/lib/AboutPreferences.sys.mjs
index 0d43919b..f2e0fbd0 100644 index eec8eb86..1aed35a8 100644
--- a/browser/extensions/newtab/lib/AboutPreferences.sys.mjs --- a/browser/extensions/newtab/lib/AboutPreferences.sys.mjs
+++ b/browser/extensions/newtab/lib/AboutPreferences.sys.mjs +++ b/browser/extensions/newtab/lib/AboutPreferences.sys.mjs
@@ -88,33 +88,6 @@ const PREFS_FOR_SETTINGS = () => [ @@ -90,33 +90,6 @@ const PREFS_FOR_SETTINGS = () => {
), ),
eventSource: "TOP_STORIES", eventSource: "TOP_STORIES",
}, },
- { - {
- id: "support-firefox", - id: "support-firefox",
- pref: { - pref: {
- feed: "showSponsoredCheckboxes", - feed: "showSponsoredCheckboxes",
- titleString: "home-prefs-support-firefox-header", - titleString: "home-prefs-support-firefox-header",
- nestedPrefs: [ - nestedPrefs: [
- { - {
- name: "showSponsoredTopSites", - name: "showSponsoredTopSites",
- titleString: "home-prefs-shortcuts-by-option-sponsored", - titleString: "home-prefs-shortcuts-by-option-sponsored",
- eventSource: "SPONSORED_TOP_SITES", - eventSource: "SPONSORED_TOP_SITES",
- }, - },
- { - {
- name: "showSponsored", - name: "showSponsored",
- titleString: "home-prefs-recommended-by-option-sponsored-stories", - titleString: "home-prefs-recommended-by-option-sponsored-stories",
- eventSource: "POCKET_SPOCS", - eventSource: "POCKET_SPOCS",
- shouldHidePref: !Services.prefs.getBoolPref( - shouldHidePref: !Services.prefs.getBoolPref(
- "browser.newtabpage.activity-stream.feeds.system.topstories", - "browser.newtabpage.activity-stream.feeds.system.topstories",
- true - true
- ), - ),
- shouldDisablePref: !Services.prefs.getBoolPref( - shouldDisablePref: !Services.prefs.getBoolPref(
- "browser.newtabpage.activity-stream.feeds.section.topstories", - "browser.newtabpage.activity-stream.feeds.section.topstories",
- true - true
- ), - ),
- }, - },
- ], - ],
- },
- }, - },
- }, ];
]; };
export class AboutPreferences {
@@ -344,41 +317,9 @@ export class AboutPreferences { @@ -344,41 +317,9 @@ export class AboutPreferences {
} }
}); });

View file

@ -8,7 +8,7 @@ index 72df22b3..24f2f807 100644
? { ? {
- wallpaperUrl: `${baseAttachmentURL}${record.attachment.location}`, - wallpaperUrl: `${baseAttachmentURL}${record.attachment.location}`,
+ wallpaperUrl: record.attachment.location.includes("trisquel") + wallpaperUrl: record.attachment.location.includes("trisquel")
+ ? `https://trisquel.cmxsl.org/newtab/${record.attachment.filename.replace(".avif", ".webp")}` + ? `chrome://browser/content/wallpapers/${record.attachment.filename.replace(".avif", ".webp")}`
+ : `${baseAttachmentURL}${record.attachment.location}`, + : `${baseAttachmentURL}${record.attachment.location}`,
} }
: {}), : {}),

View file

@ -210,7 +210,7 @@ pref("media.gmp-widevinecdm.enabled", false);
pref("media.eme.enabled", false); pref("media.eme.enabled", false);
//Disable middle click content load //Disable middle click content load
//Avoid loading urls by mistake //Avoid loading urls by mistake
pref("middlemouse.contentLoadURL", false); pref("middlemouse.contentLoadURL", false);
//Disable heartbeat //Disable heartbeat
@ -324,3 +324,6 @@ pref("messaging-system.rsexperimentloader.enabled", false);
pref("network.trr.mode", 5); pref("network.trr.mode", 5);
pref("doh-rollout.enabled", false); pref("doh-rollout.enabled", false);
pref("doh-rollout.provider-steering.enabled", false); pref("doh-rollout.provider-steering.enabled", false);
// Disable remote rollouts
pref("nimbus.rollouts.enabled", false);

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 45 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 44 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 75 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View file

@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=132 VERSION=133
EXTERNAL='deb-src http://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu $UPSTREAM main' EXTERNAL='deb-src http://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu $UPSTREAM main'
REPOKEY=AEBDF4819BE21867 REPOKEY=AEBDF4819BE21867
@ -278,10 +278,31 @@ done
# Replace sidebar icons # Replace sidebar icons
rm -rf browser/themes/shared/sidebar rm -rf browser/themes/shared/sidebar
cp -R $DATA/ui_branding/sidebar browser/themes/shared/ cp -R $DATA/ui_branding/sidebar browser/themes/shared/
# Replace brand illustrations
grep -rl kit-concerned.svg | xargs -r sed -i 's|kit-concerned.svg|abrowser-offline.svg|g'
grep -rl kit-happy.svg | xargs -r sed -i 's|kit-happy.svg|abrowser-online.svg|g'
cp $DATA/ui_branding/illustrations/* toolkit/themes/shared/illustrations/
for i in kit-concerned.svg kit-happy.svg
do
echo "> removing replaced illustration $i"
rm toolkit/themes/shared/illustrations/$i
done
python3 $DATA/ui_branding/wallpaper-replace.py --source $DATA/ui_branding/build.json \ python3 $DATA/ui_branding/wallpaper-replace.py --source $DATA/ui_branding/build.json \
--replace services/settings/dumps/main/newtab-wallpapers-v2.json --replace services/settings/dumps/main/newtab-wallpapers-v2.json
# Static wallpapers
mkdir -p browser/base/content/wallpapers/
cp $DATA/ui_branding/wallpapers/*.webp browser/base/content/wallpapers/
echo "" >> browser/base/jar.mn
echo "browser.jar:" >> browser/base/jar.mn
for img in browser/base/content/wallpapers/*.webp; do
filename=$(basename "$img")
echo " content/browser/wallpapers/$filename (content/wallpapers/$filename)" >> browser/base/jar.mn
done
# Graphic Debranding # Graphic Debranding
cp $DATA/ui_branding/debranding/assets/puzzle-fox.svg browser/extensions/newtab/data/content/assets/puzzle-fox.svg cp $DATA/ui_branding/debranding/assets/puzzle-fox.svg browser/extensions/newtab/data/content/assets/puzzle-fox.svg
## replace multiple firefox qr codes. ## replace multiple firefox qr codes.