зеркало из https://github.com/mozilla/pjs.git
Fix for using OS temp directory for plugin temporary files instead of profile bug 104859 r=av sr=darin
This commit is contained in:
Родитель
0885b2230a
Коммит
9f4a43bdfe
|
@ -1777,8 +1777,7 @@ nsPluginStreamListenerPeer::SetupPluginCacheFile(nsIChannel* channel)
|
||||||
|
|
||||||
// Is this the best place to put this temp file?
|
// Is this the best place to put this temp file?
|
||||||
nsCOMPtr<nsIFile> pluginTmp;
|
nsCOMPtr<nsIFile> pluginTmp;
|
||||||
rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
|
rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp));
|
||||||
getter_AddRefs(pluginTmp));
|
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
rv = pluginTmp->Append(kPluginTmpDirName);
|
rv = pluginTmp->Append(kPluginTmpDirName);
|
||||||
|
@ -3115,8 +3114,7 @@ NS_IMETHODIMP nsPluginHostImpl::Destroy(void)
|
||||||
|
|
||||||
// Lets remove any of the temporary files that we created.
|
// Lets remove any of the temporary files that we created.
|
||||||
nsCOMPtr<nsIFile> pluginTmp;
|
nsCOMPtr<nsIFile> pluginTmp;
|
||||||
nsresult rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
|
nsresult rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp));
|
||||||
getter_AddRefs(pluginTmp));
|
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
rv = pluginTmp->Append(kPluginTmpDirName);
|
rv = pluginTmp->Append(kPluginTmpDirName);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче