зеркало из https://github.com/mozilla/gecko-dev.git
Bug 722868 - Part 2: Make the download manager aware of the deleteTemporaryPrivateFileWhenPossible API; r=gavin
This commit is contained in:
Родитель
2ba15a514f
Коммит
b03ad8e3e7
|
@ -2879,9 +2879,14 @@ nsDownload::OpenWithApplication()
|
|||
|
||||
// Even if we are unable to get this service we return the result
|
||||
// of LaunchWithFile() which makes more sense.
|
||||
if (appLauncher)
|
||||
if (appLauncher) {
|
||||
if (nsDownloadManager::gDownloadManagerService->mInPrivateBrowsing) {
|
||||
(void)appLauncher->DeleteTemporaryPrivateFileWhenPossible(target);
|
||||
} else {
|
||||
(void)appLauncher->DeleteTemporaryFileOnExit(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче