зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1562305 - Remove browser.cache.compression_level pref. r=michal
It's unused. Differential Revision: https://phabricator.services.mozilla.com/D37191 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7f3b5b80c6
Коммит
0d47e90e70
|
@ -80,9 +80,6 @@ pref("offline-apps.quota.warn", 1024); // kilobytes
|
|||
// Automatically shrink-to-fit image documents.
|
||||
pref("browser.enable_automatic_image_resizing", true);
|
||||
|
||||
// cache compression turned off for now - see bug #715198
|
||||
pref("browser.cache.compression_level", 0);
|
||||
|
||||
/* disable some protocol warnings */
|
||||
pref("network.protocol-handler.warn-external.tel", false);
|
||||
pref("network.protocol-handler.warn-external.sms", false);
|
||||
|
|
|
@ -55,13 +55,6 @@ pref("browser.cache.offline.capacity", 512000);
|
|||
// (in kilobytes)
|
||||
pref("offline-apps.quota.warn", 51200);
|
||||
|
||||
// zlib compression level used for cache compression:
|
||||
// 0 => disable compression
|
||||
// 1 => best speed
|
||||
// 9 => best compression
|
||||
// cache compression turned off for now - see bug #715198
|
||||
pref("browser.cache.compression_level", 0);
|
||||
|
||||
// Don't show "Open with" option on download dialog if true.
|
||||
pref("browser.download.forbid_open_with", false);
|
||||
|
||||
|
|
|
@ -33,9 +33,6 @@ static uint32_t const kDefaultDiskCacheCapacity = 250 * 1024; // 250 MB
|
|||
Atomic<uint32_t, Relaxed> CacheObserver::sDiskCacheCapacity(
|
||||
kDefaultDiskCacheCapacity);
|
||||
|
||||
static uint32_t const kDefaultCompressionLevel = 1;
|
||||
uint32_t CacheObserver::sCompressionLevel = kDefaultCompressionLevel;
|
||||
|
||||
static bool kDefaultSanitizeOnShutdown = false;
|
||||
bool CacheObserver::sSanitizeOnShutdown = kDefaultSanitizeOnShutdown;
|
||||
|
||||
|
@ -109,11 +106,6 @@ void CacheObserver::AttachToPreferences() {
|
|||
"browser.cache.disk.capacity",
|
||||
kDefaultDiskCacheCapacity);
|
||||
|
||||
// http://mxr.mozilla.org/mozilla-central/source/netwerk/cache/nsCacheEntryDescriptor.cpp#367
|
||||
mozilla::Preferences::AddUintVarCache(&sCompressionLevel,
|
||||
"browser.cache.compression_level",
|
||||
kDefaultCompressionLevel);
|
||||
|
||||
mozilla::Preferences::GetComplex(
|
||||
"browser.cache.disk.parent_directory", NS_GET_IID(nsIFile),
|
||||
getter_AddRefs(mCacheParentDirectoryOverride));
|
||||
|
|
|
@ -72,7 +72,6 @@ class CacheObserver : public nsIObserver, public nsSupportsWeakReference {
|
|||
browser_cache_disk_max_priority_chunks_memory_usage()
|
||||
: StaticPrefs::browser_cache_disk_max_chunks_memory_usage();
|
||||
}
|
||||
static uint32_t CompressionLevel() { return sCompressionLevel; }
|
||||
static uint32_t HalfLifeSeconds() { return sHalfLifeHours * 60.0F * 60.0F; }
|
||||
static bool ClearCacheOnShutdown() {
|
||||
return sSanitizeOnShutdown && sClearCacheOnShutdown;
|
||||
|
@ -111,7 +110,6 @@ class CacheObserver : public nsIObserver, public nsSupportsWeakReference {
|
|||
|
||||
static int32_t sAutoMemoryCacheCapacity;
|
||||
static Atomic<uint32_t, Relaxed> sDiskCacheCapacity;
|
||||
static uint32_t sCompressionLevel;
|
||||
static float sHalfLifeHours;
|
||||
static bool sSanitizeOnShutdown;
|
||||
static bool sClearCacheOnShutdown;
|
||||
|
|
Загрузка…
Ссылка в новой задаче