summaryrefslogtreecommitdiff
path: root/user/thunderbird/without-jit.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-16 17:49:32 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-11-24 22:58:47 -0600
commit0f8c40ac77d1bc7ad0ba861f771bdd1207148ca2 (patch)
tree377284d074f8cea1662583875d03b548f8e5d5de /user/thunderbird/without-jit.patch
parent1a7b7d68a2413c63cf01088c2c18b773c747efb7 (diff)
downloadpackages-0f8c40ac77d1bc7ad0ba861f771bdd1207148ca2.tar.gz
packages-0f8c40ac77d1bc7ad0ba861f771bdd1207148ca2.tar.bz2
packages-0f8c40ac77d1bc7ad0ba861f771bdd1207148ca2.tar.xz
packages-0f8c40ac77d1bc7ad0ba861f771bdd1207148ca2.zip
user/thunderbird: Update to 128.4.0esr
Bring in the same patches as Firefox.
Diffstat (limited to 'user/thunderbird/without-jit.patch')
-rw-r--r--user/thunderbird/without-jit.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/thunderbird/without-jit.patch b/user/thunderbird/without-jit.patch
new file mode 100644
index 000000000..dff372ec0
--- /dev/null
+++ b/user/thunderbird/without-jit.patch
@@ -0,0 +1,28 @@
+diff -r 81fc811c3c39 toolkit/components/translations/actors/TranslationsParent.sys.mjs
+--- a/toolkit/components/translations/actors/TranslationsParent.sys.mjs Thu Aug 08 21:26:29 2024 -0700
++++ b/toolkit/components/translations/actors/TranslationsParent.sys.mjs Sat Aug 10 16:45:13 2024 -0700
+@@ -618,16 +618,25 @@
+ * Detect if Wasm SIMD is supported, and cache the value. It's better to check
+ * for support before downloading large binary blobs to a user who can't even
+ * use the feature. This function also respects mocks and simulating unsupported
+ * engines.
+ *
+ * @type {boolean}
+ */
+ static getIsTranslationsEngineSupported() {
++ try {
++ // Ensure WebAssembly is supported and enabled (may not be on tier-3).
++ if (!WebAssembly) {
++ return false;
++ }
++ } catch(e) {
++ return false;
++ }
++
+ if (lazy.simulateUnsupportedEnginePref) {
+ // Use the non-lazy console.log so that the user is always informed as to why
+ // the translations engine is not working.
+ console.log(
+ "Translations: The translations engine is disabled through the pref " +
+ '"browser.translations.simulateUnsupportedEngine".'
+ );