diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 998054a207e..6416a3af429 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -827,8 +827,11 @@ pref("network.gonk.manage-offline-status", true); // On Firefox Mulet, we can't enable shared JSM scope // as it breaks most Firefox JSMs (see bug 961777) #ifndef MOZ_MULET +// Break any JSMs or JS components that rely on shared scope +#ifndef DEBUG pref("jsloader.reuseGlobal", true); #endif +#endif // Enable font inflation for browser tab content. pref("font.size.inflation.minTwips", 120); diff --git a/dom/resourcestats/ResourceStatsDB.jsm b/dom/resourcestats/ResourceStatsDB.jsm index 8b576ef9a9d..a4ee943ca6f 100644 --- a/dom/resourcestats/ResourceStatsDB.jsm +++ b/dom/resourcestats/ResourceStatsDB.jsm @@ -14,6 +14,7 @@ const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components; Cu.import("resource://gre/modules/IndexedDBHelper.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm"); +Cu.importGlobalProperties(["indexedDB"]); XPCOMUtils.defineLazyServiceGetter(this, "appsService", "@mozilla.org/AppsService;1", diff --git a/js/xpconnect/loader/mozJSComponentLoader.cpp b/js/xpconnect/loader/mozJSComponentLoader.cpp index 36735703dd9..9f032a22e6a 100644 --- a/js/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/xpconnect/loader/mozJSComponentLoader.cpp @@ -389,7 +389,8 @@ mozJSComponentLoader::ReallyInit() // XXXkhuey B2G child processes have some sort of preferences race that // results in getting the wrong value. // But we don't want that on Firefox Mulet as it break most Firefox JSMs... -#if defined(MOZ_B2G) && !defined(MOZ_MULET) + // Also disable on debug builds to break js components that rely on this. +#if defined(MOZ_B2G) && !defined(MOZ_MULET) && !defined(DEBUG) mReuseLoaderGlobal = true; #endif