зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1641866 - fix XUL cache disabling code to actually revert it, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D77485
This commit is contained in:
Родитель
b046f4d5be
Коммит
874c03c104
|
@ -33,7 +33,10 @@ using namespace mozilla;
|
|||
using namespace mozilla::scache;
|
||||
using mozilla::intl::LocaleService;
|
||||
|
||||
static bool gDisableXULCache = false; // enabled by default
|
||||
#define XUL_CACHE_DISABLED_DEFAULT false
|
||||
|
||||
static bool gDisableXULCache =
|
||||
XUL_CACHE_DISABLED_DEFAULT; // enabled by default
|
||||
static const char kDisableXULCachePref[] = "nglayout.debug.disable_xul_cache";
|
||||
static const char kXULCacheInfoKey[] = "nsXULPrototypeCache.startupCache";
|
||||
static const char kXULCachePrefix[] = "xulcache";
|
||||
|
@ -43,7 +46,7 @@ static const char kXULCachePrefix[] = "xulcache";
|
|||
static void UpdategDisableXULCache() {
|
||||
// Get the value of "nglayout.debug.disable_xul_cache" preference
|
||||
gDisableXULCache =
|
||||
Preferences::GetBool(kDisableXULCachePref, gDisableXULCache);
|
||||
Preferences::GetBool(kDisableXULCachePref, XUL_CACHE_DISABLED_DEFAULT);
|
||||
|
||||
// Sets the flag if the XUL cache is disabled
|
||||
if (gDisableXULCache) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче