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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user