From 02d052d061e7a683542d71452b055011e71ca90b Mon Sep 17 00:00:00 2001 From: "sdagley%netscape.com" Date: Sun, 22 Dec 2002 01:21:29 +0000 Subject: [PATCH] Fix #183856 - don't cache DL folder as user may change it while we're running. r=ccarlen,sr=sfraser git-svn-id: svn://10.0.0.236/trunk@135558 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsDirectoryService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/xpcom/io/nsDirectoryService.cpp b/mozilla/xpcom/io/nsDirectoryService.cpp index 41951bb3767..587c77cbe82 100644 --- a/mozilla/xpcom/io/nsDirectoryService.cpp +++ b/mozilla/xpcom/io/nsDirectoryService.cpp @@ -995,6 +995,10 @@ nsDirectoryService::GetFile(const char *prop, PRBool *persistent, nsIFile **_ret rv = localMacFile->InitWithFSRef(&fsRef); } } + + // Don't cache the DL directory as the user may change it while we're running. + // Negligible perf hit as this directory is only requested for downloads + *persistent = PR_FALSE; } #elif defined (XP_WIN) else if (inAtom == nsDirectoryService::sSystemDirectory)