From 70eea3db84df0fcd405fff0426af11836af5564d Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Sat, 24 Jun 2000 03:04:51 +0000 Subject: [PATCH] Don't inherit the 4.x cache file location for mozilla (39812). r=pavlov git-svn-id: svn://10.0.0.236/trunk@73153 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/profile/pref-migrator/src/nsPrefMigration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp b/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp index d594a71314a..3bcfe415013 100644 --- a/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp +++ b/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp @@ -133,6 +133,7 @@ #define PREF_NETWORK_HOSTS_POP_SERVER "network.hosts.pop_server" #define PREF_4X_NETWORK_HOSTS_IMAP_SERVER "network.hosts.imap_servers" #define PREF_MAIL_SERVER_TYPE "mail.server_type" +#define PREF_BROWSER_CACHE_DIRECTORY "browser.cache.directory" #define POP_4X_MAIL_TYPE 0 #define IMAP_4X_MAIL_TYPE 1 #ifdef HAVE_MOVEMAIL @@ -1041,6 +1042,10 @@ nsPrefMigration::ProcessPrefsCallback(const char* oldProfilePathStr, const char return NS_ERROR_FAILURE; } + // Don't inherit the 4.x cache file location for mozilla! + // The cache pref later gets set with a default in nsAppRunner::InitCachePrefs(). + m_prefs->ClearUserPref(PREF_BROWSER_CACHE_DIRECTORY); + rv=DoSpecialUpdates(newProfilePath); if (NS_FAILED(rv)) return rv; PR_FREEIF(popServerName);