Bug 1381961 - Enabled shared global for JSMs pref. r=kmag draft
authorAndrew McCreight <continuation@gmail.com>
Tue, 18 Jul 2017 13:00:41 -0700
changeset 659280 cd02dbb7adb9ad44a8a98130ad41834e1a8ad933
parent 659279 a032ebe126cee8b0bc40d086d5ccc8fbf8d7595f
child 659296 3faf3d330e8bad1f285c137a539c51cdacc6bf7e
push id78083
push userbmo:continuation@gmail.com
push dateTue, 05 Sep 2017 20:08:50 +0000
reviewerskmag
bugs1381961
milestone57.0a1
Bug 1381961 - Enabled shared global for JSMs pref. r=kmag MozReview-Commit-ID: 6WUH9TZczQ9
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5246,17 +5246,17 @@ pref("dom.idle-observers-api.fuzz_time.d
 // they are handled separately. This pref is only read once at startup:
 // a restart is required to enable a new value.
 pref("network.activity.blipIntervalMilliseconds", 0);
 
 // 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);
+pref("jsloader.shareGlobal", true);
 
 // When we're asked to take a screenshot, don't wait more than 2000ms for the
 // event loop to become idle before actually taking the screenshot.
 pref("dom.browserElement.maxScreenshotDelayMS", 2000);
 
 // Whether we should show the placeholder when the element is focused but empty.
 pref("dom.placeholder.show_on_focus", true);