зеркало из https://github.com/mozilla/gecko-dev.git
Bug 901360 - (Part 3) Persist download history forever. r=paolo
--HG-- extra : rebase_source : 694428b676809cf0a0c10a81d68e02183d11f780
This commit is contained in:
Родитель
a1ef6f3837
Коммит
7a53624f52
|
@ -314,13 +314,15 @@ this.DownloadIntegration = {
|
|||
// progress, as well as stopped downloads for which we retained partially
|
||||
// downloaded data. Stopped downloads for which we don't need to track the
|
||||
// presence of a ".part" file are only retained in the browser history.
|
||||
// On b2g, we keep a few days of history.
|
||||
// On b2g, we keep a few days of history. On Android we store all history.
|
||||
#ifdef MOZ_B2G
|
||||
let maxTime = Date.now() -
|
||||
Services.prefs.getIntPref("dom.downloads.max_retention_days") * 24 * 60 * 60 * 1000;
|
||||
return (aDownload.startTime > maxTime) ||
|
||||
aDownload.hasPartialData ||
|
||||
!aDownload.stopped;
|
||||
#elif defined(MOZ_WIDGET_ANDROID)
|
||||
return true;
|
||||
#else
|
||||
return aDownload.hasPartialData || !aDownload.stopped;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче