diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2003-08-26 14:19:09 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2003-08-26 14:19:09 +0000 |
commit | 7a24ee6c694a2c0741caf99a4017b41285e5811a (patch) | |
tree | df43fbb46dbe2474d0f74d6542d7a842b7f1938b /patches/MozillaFirebird-source-0.6.1 | |
parent | 51ff414d42176f00dd7afb0bdc972bc37d374220 (diff) | |
download | ptxdist-7a24ee6c694a2c0741caf99a4017b41285e5811a.tar.gz ptxdist-7a24ee6c694a2c0741caf99a4017b41285e5811a.tar.xz |
Fix for Mozilla in low memory situations (64 MB). [RSC, BSP]
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@226 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches/MozillaFirebird-source-0.6.1')
-rw-r--r-- | patches/MozillaFirebird-source-0.6.1/nsCacheService.diff | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/MozillaFirebird-source-0.6.1/nsCacheService.diff b/patches/MozillaFirebird-source-0.6.1/nsCacheService.diff new file mode 100644 index 000000000..cd9bb0cb6 --- /dev/null +++ b/patches/MozillaFirebird-source-0.6.1/nsCacheService.diff @@ -0,0 +1,30 @@ +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,22 +361,16 @@ + 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; + } + + |