mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 410794: temporary downloads no longer cleaned up at shutdown since they are read-only. r+sr=cbiesinger, a=mtschrep
This commit is contained in:
parent
55d0d3d42e
commit
bdbf8bdca7
@ -872,8 +872,11 @@ nsresult nsExternalHelperAppService::ExpungeTemporaryFiles()
|
||||
for (PRInt32 index = 0; index < numEntries; index++)
|
||||
{
|
||||
localFile = mTemporaryFilesList[index];
|
||||
if (localFile)
|
||||
if (localFile) {
|
||||
// First make the file writable, since the temp file is probably readonly.
|
||||
localFile->SetPermissions(0600);
|
||||
localFile->Remove(PR_FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
mTemporaryFilesList.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user