From ed0edf6a22195f1d154fcba2bc7b0263f07238df Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 20 Jul 2020 08:12:05 -0400 Subject: [PATCH 1/6] Issue #1611 - Enable WASM by default but only enable jit when 64bit --- modules/libpref/init/all.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index f4dbc74575..2e70ad5f06 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1265,8 +1265,14 @@ pref("javascript.options.unboxed_objects", false); pref("javascript.options.baselinejit", true); pref("javascript.options.ion", true); pref("javascript.options.asmjs", true); -pref("javascript.options.wasm", false); +pref("javascript.options.wasm", true); +// wasm jit crashes in 32bit builds because of 64bit casts so +// only enable it by default for 64bit builds +#ifdef HAVE_64BIT_BUILD +pref("javascript.options.wasm_baselinejit", true); +#else pref("javascript.options.wasm_baselinejit", false); +#endif pref("javascript.options.native_regexp", true); pref("javascript.options.parallel_parsing", true); // ayncstack is used for debugging promises in devtools. From b31c90d1abfe543119064297d1bb53ffa1bec217 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Wed, 22 Jul 2020 04:56:56 -0400 Subject: [PATCH 2/6] Issue #1612 - Add-ons targeting Toolkit's ID (and not Firefox's) should be considered "native" by the Add-ons Manager when using the Dual-GUID system A version bump triggering add-on compatibility check will re-evaluate the "native" status (among other things) so no extra or special work is required to fix erroneous warnings. tl;dr instafix! --- toolkit/mozapps/extensions/internal/XPIProvider.jsm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm index 600ec2ff5d..a8594036c9 100644 --- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm +++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm @@ -6477,8 +6477,12 @@ AddonInternal.prototype = { return false; #endif } - else if (app.id == TOOLKIT_ID) - version = aPlatformVersion + else if (app.id == TOOLKIT_ID) { +#ifdef MOZ_PHOENIX_EXTENSIONS + this.native = true; +#endif + version = aPlatformVersion; + } // Only extensions and dictionaries can be compatible by default; themes // and language packs always use strict compatibility checking. From b36f73fc57b38e07521e1fc5e047e657c480c9d0 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 23 Jul 2020 23:16:18 +0000 Subject: [PATCH 3/6] [css] Enable various arbitrarily-disabled CSS features in the platform. These should all be spec-compliant and were (for release-trickling of features) arbitrarily disabled by Mozilla at our fork point. There's no real reason to keep them disabled since they are used in the wild. --- modules/libpref/init/all.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 2e70ad5f06..c41d1d4ad0 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -2489,7 +2489,7 @@ pref("layout.css.scroll-snap.prediction-max-velocity", 2000); pref("layout.css.scroll-snap.prediction-sensitivity", "0.750"); // Is support for basic shapes in clip-path enabled? -pref("layout.css.clip-path-shapes.enabled", false); +pref("layout.css.clip-path-shapes.enabled", true); // Is support for DOMPoint enabled? pref("layout.css.DOMPoint.enabled", true); @@ -2501,18 +2501,10 @@ pref("layout.css.DOMQuad.enabled", true); pref("layout.css.DOMMatrix.enabled", true); // Is support for GeometryUtils.getBoxQuads enabled? -#ifdef RELEASE_OR_BETA -pref("layout.css.getBoxQuads.enabled", false); -#else pref("layout.css.getBoxQuads.enabled", true); -#endif // Is support for GeometryUtils.convert*FromNode enabled? -#ifdef RELEASE_OR_BETA -pref("layout.css.convertFromNode.enabled", false); -#else pref("layout.css.convertFromNode.enabled", true); -#endif // Is support for CSS "text-align: unsafe X" enabled? pref("layout.css.text-align-unsafe-value.enabled", false); @@ -2522,11 +2514,7 @@ pref("layout.css.text-justify.enabled", true); // Is support for CSS "float: inline-{start,end}" and // "clear: inline-{start,end}" enabled? -#if !defined(RELEASE_OR_BETA) pref("layout.css.float-logical-values.enabled", true); -#else -pref("layout.css.float-logical-values.enabled", false); -#endif // Is support for the CSS4 image-orientation property enabled? pref("layout.css.image-orientation.enabled", true); From d29ccb177dab0066a73889b85b8dbc35c5780f3c Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 20 Jul 2020 08:25:28 -0400 Subject: [PATCH 4/6] [Pale-Moon] Issue #1814 - Add controls for WASM --- .../palemoon/components/preferences/content.xul | 12 ++++++++++++ .../en-US/chrome/browser/preferences/content.dtd | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/application/palemoon/components/preferences/content.xul b/application/palemoon/components/preferences/content.xul index 23d942e457..19a6c34ab8 100644 --- a/application/palemoon/components/preferences/content.xul +++ b/application/palemoon/components/preferences/content.xul @@ -32,6 +32,10 @@ type="wstring" onchange="gContentPane._rebuildFonts();"/> + + + + @@ -153,6 +157,14 @@ + + + + + + + diff --git a/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd b/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd index 91abab0694..1d0f2af746 100644 --- a/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd +++ b/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd @@ -30,6 +30,10 @@ + + + + From caf316c9e4dc6482329764439c7a93e9f5aa812a Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 20 Jul 2020 08:30:30 -0400 Subject: [PATCH 5/6] [Pale-Moon] Follow up to Issue #1814 - Use correct casing for JavaScript --- .../locales/en-US/chrome/browser/preferences/content.dtd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd b/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd index 1d0f2af746..bed982bc37 100644 --- a/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd +++ b/application/palemoon/locales/en-US/chrome/browser/preferences/content.dtd @@ -30,7 +30,7 @@ - + From 95c5a64b1f2bec37eb398d1fb612422d71037092 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 20 Jul 2020 08:22:27 -0400 Subject: [PATCH 6/6] [Basilisk] Issue MoonchildProductions/UXP#1611 - Use platform default for WASM --- application/basilisk/app/profile/basilisk.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/application/basilisk/app/profile/basilisk.js b/application/basilisk/app/profile/basilisk.js index eed217dafe..ac55e21308 100644 --- a/application/basilisk/app/profile/basilisk.js +++ b/application/basilisk/app/profile/basilisk.js @@ -1353,7 +1353,3 @@ pref("services.sync.validation.enabled", true); // The counter resets when the page is reloaded from the UI // (content-reloads do NOT clear this to mitigate reloading tricks). pref("prompts.authentication_dialog_abuse_limit", 3); - -// Enable WASM and its baseline jit (platform default is false) -pref("javascript.options.wasm", true); -pref("javascript.options.wasm_baselinejit", true); \ No newline at end of file