mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 722868 - Part 3: Make insExternalAppHandler::OpenWithApplication aware of the deleteTemporaryPrivateFileWhenPossible API; r=bzbarsky
This commit is contained in:
parent
3dfe40b202
commit
5420a60074
@ -2208,9 +2208,12 @@ nsresult nsExternalAppHandler::OpenWithApplication()
|
||||
}
|
||||
// Always schedule files to be deleted at the end of the private browsing
|
||||
// mode, regardless of the value of the pref.
|
||||
else if (deleteTempFileOnExit || mExtProtSvc->InPrivateBrowsing()) {
|
||||
else if (deleteTempFileOnExit) {
|
||||
mExtProtSvc->DeleteTemporaryFileOnExit(mFinalFileDestination);
|
||||
}
|
||||
else if (mExtProtSvc->InPrivateBrowsing()) {
|
||||
mExtProtSvc->DeleteTemporaryPrivateFileWhenPossible(mFinalFileDestination);
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user