From 7a24ee6c694a2c0741caf99a4017b41285e5811a Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Tue, 26 Aug 2003 14:19:09 +0000 Subject: 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 --- .../nsCacheService.diff | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 patches/MozillaFirebird-source-0.6.1/nsCacheService.diff (limited to 'patches/MozillaFirebird-source-0.6.1') 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; + } + + -- cgit v1.2.3