Fix for using OS temp directory for plugin temporary files instead of profile bug 104859 r=av sr=darin
git-svn-id: svn://10.0.0.236/trunk@107526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
28703b942c
commit
c93017e863
@ -1777,8 +1777,7 @@ nsPluginStreamListenerPeer::SetupPluginCacheFile(nsIChannel* channel)
|
||||
|
||||
// Is this the best place to put this temp file?
|
||||
nsCOMPtr<nsIFile> pluginTmp;
|
||||
rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
|
||||
getter_AddRefs(pluginTmp));
|
||||
rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = pluginTmp->Append(kPluginTmpDirName);
|
||||
@ -3115,8 +3114,7 @@ NS_IMETHODIMP nsPluginHostImpl::Destroy(void)
|
||||
|
||||
// Lets remove any of the temporary files that we created.
|
||||
nsCOMPtr<nsIFile> pluginTmp;
|
||||
nsresult rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
|
||||
getter_AddRefs(pluginTmp));
|
||||
nsresult rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = pluginTmp->Append(kPluginTmpDirName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user