The Pale Moon Project - Custom-built and optimized Firefox browsers for Windows Operating Systems

[ <-- Back ]

GN bug 20120512

The browser sets a hard cache limit of 1GB as a user preference, regardless of the browser default.

Reporters: Herman Strange

Affects the following:

Builds: All Next Gen builds.

Cause: Hard-coded setting of the cache limit to the theoretical ceiling if configured not to use automatic cache management.

Details:
This is caused by a UX decision to show the user the MAX cache size after unchecking Firefox's default setting for automatic cache management (Mozilla Bug 559942 comment 65).
This "display value" however is the actual value as stored in a user pref for cache limit and not just a display value.
When automatic cache management is not used (pref to false) in the default profile, upon first run, the disk cache value is set to 1GB, ignoring the defaults set in firefox.js and potential branding preferences.

Solution:
Comment out
branch->SetIntPref(DISK_CACHE_CAPACITY_PREF, MAX_CACHE_SIZE);
in netwerk\cache\nsCacheService.cpp under nsCacheProfilePrefObserver::PermittedToSmartSize

Implementation:
Source edit nsCacheService.cpp and recompile

[ <-- Back ]

Halloween theme art by Laura Bevon
Firefox, Mozilla Firefox and Mozilla are registered trademarks of the Mozilla Corporation.
Site and contents © 2009-2014 Moonchild Productions - All rights reserved
Pale Moon's distribution is subject to the following redistribution license