diff options
Diffstat (limited to 'patches/MozillaFirebird-source-0.6.1/generic/nsCacheService.diff')
-rw-r--r-- | patches/MozillaFirebird-source-0.6.1/generic/nsCacheService.diff | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/patches/MozillaFirebird-source-0.6.1/generic/nsCacheService.diff b/patches/MozillaFirebird-source-0.6.1/generic/nsCacheService.diff new file mode 100644 index 000000000..7ad8640d3 --- /dev/null +++ b/patches/MozillaFirebird-source-0.6.1/generic/nsCacheService.diff @@ -0,0 +1,40 @@ +# Robert Schwebel 26 Aug 2003 +# +# Mozilla has a strange heuristic to determine if disk and memory cache +# has to be used or not. In our case with 64 MB physical memory this +# does explode as the mechanism does only find out about _physical_ +# memory, not taking swap into account. +# +# This is only a workaround - real patch should be developed... +# + +diff -urN MozillaFirebird-source-0.6.1/netwerk/cache/src/nsCacheService.cpp MozillaFirebird-source-0.6.1-ptx1/netwerk/cache/src/nsCacheService.cpp +--- MozillaFirebird-source-0.6.1/netwerk/cache/src/nsCacheService.cpp 2003-08-26 16:12:11.000000000 +0200 ++++ MozillaFirebird-source-0.6.1-ptx1/netwerk/cache/src/nsCacheService.cpp 2003-07-09 04:28:07.000000000 +0200 +@@ -361,16 +361,22 @@ + PRBool + nsCacheProfilePrefObserver::DiskCacheEnabled() + { ++// if ((mDiskCacheCapacity == 0) || (!mDiskCacheParentDirectory)) return PR_FALSE; ++// return mDiskCacheEnabled; ++ ++ // FIXME: PTX: we fake this because it is not autodetected correctly ++ return PR_FALSE; +- if ((mDiskCacheCapacity == 0) || (!mDiskCacheParentDirectory)) return PR_FALSE; +- return mDiskCacheEnabled; + } + + + PRBool + nsCacheProfilePrefObserver::MemoryCacheEnabled() + { ++// if (mMemoryCacheCapacity == 0) return PR_FALSE; ++// return mMemoryCacheEnabled; ++ ++ // FIXME: PTX: we fake this because it is not autodetected correctly ++ return PR_FALSE; +- if (mMemoryCacheCapacity == 0) return PR_FALSE; +- return mMemoryCacheEnabled; + } + + |