From a211c7d7f3a77b950db66b5269f78d92652df1f5 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 14 Apr 2024 21:01:31 +0200 Subject: [PATCH] Issue #2503 - Part 2: Add CPU IS support flags to UpdateUtils URL substitutions. --- toolkit/modules/UpdateUtils.jsm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toolkit/modules/UpdateUtils.jsm b/toolkit/modules/UpdateUtils.jsm index 5acf395d3d..80cddfd369 100644 --- a/toolkit/modules/UpdateUtils.jsm +++ b/toolkit/modules/UpdateUtils.jsm @@ -81,7 +81,10 @@ this.UpdateUtils = { [/%PLATFORM_VERSION%/g, Services.appinfo.platformVersion], [/%DISTRIBUTION%/g, distribution], [/%DISTRIBUTION_VERSION%/g, distributionVersion], - [/%LOCALE%/g, this.Locale] + [/%LOCALE%/g, this.Locale], + [/%CPU_SSE2%/g, navigator.cpuHasSSE2], + [/%CPU_AVX%/g, navigator.cpuHasAVX], + [/%CPU_AVX2%/g, navigator.cpuHasAVX2] ]; substs.forEach(([_subst, _value]) => aUpdateURL = aUpdateURL.replace(_subst, _value));