From 3075a7d81c6aa7c943a560e595cd1fd2cbacf836 Mon Sep 17 00:00:00 2001 From: DineshKumarRA Date: Sun, 19 Jan 2025 20:43:39 +0000 Subject: [PATCH] Use tax.xz for Firefox package starting in version 135 in pinned browsers --- scripts/pinned_browsers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/pinned_browsers.py b/scripts/pinned_browsers.py index 7dd7a4bf09e60..77bc0a021acf3 100755 --- a/scripts/pinned_browsers.py +++ b/scripts/pinned_browsers.py @@ -416,7 +416,12 @@ def firefox_version_data(): def firefox_linux(version): - return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.bz2" % (version, version) + if int(version.split(".")[0]) < 135: + return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.bz2" % ( + version, version) + else: + return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.xz" % ( + version, version) def firefox_mac(version):