Bug 1073094 - Disable jsloader.reuseGlobal on debug builds, r=khuey

This commit is contained in:
Michael Wu 2014-09-30 12:25:41 -04:00
parent 7187210372
commit cd87678225
3 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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",

View File

@ -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