Bug 1401528 - set pref jsloader.shareGlobal to false to avoid test failures. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Wed, 20 Sep 2017 15:43:49 +0200
changeset 29751 4de5f6029108a3c0bed98d50dc7d38dd4a4d088b
parent 29750 4ff3727aec0f13b8a9912b7fadab5fee26249302
child 29752 a32798c482ccd29b661d9bcd0aa2f8bf551bbabe
push id378
push userclokep@gmail.com
push dateMon, 13 Nov 2017 18:45:35 +0000
reviewersbustage-fix
bugs1401528
Bug 1401528 - set pref jsloader.shareGlobal to false to avoid test failures. rs=bustage-fix
mail/app/profile/all-thunderbird.js
--- a/mail/app/profile/all-thunderbird.js
+++ b/mail/app/profile/all-thunderbird.js
@@ -126,16 +126,23 @@ pref("toolkit.crashreporter.infoURL",
      "https://www.mozilla.org/thunderbird/legal/privacy/#crash-reporter");");
 
 // Base URL for web-based support pages.
 pref("app.support.baseURL", "https://support.live.mozillamessaging.com/%LOCALE%/%APP%/%APPBUILDID%/");
 
 // Show error messages in error console.
 pref("javascript.options.showInConsole", true);
 
+// Workaround for bug 1401528.
+// If true, reuse the same global for (almost) everything loaded by the component
+// loader (JS components, JSMs, etc). This saves memory, but makes it possible
+// for the scripts to interfere with each other.  A restart is required for this
+// to take effect.
+pref("jsloader.shareGlobal", false);
+
 // Controls enabling of the extension system logging (can reduce performance)
 pref("extensions.logging.enabled", false);
 
 // Disables strict compatibility, making addons compatible-by-default.
 pref("extensions.strictCompatibility", false);
 
 // Specifies a minimum maxVersion an addon needs to say it's compatible with
 // for it to be compatible by default.