Bug 395330 - Active downloads don't appear in download manager. r=sdwilsh, blocking-ff3=mconnor

This commit is contained in:
edward.lee%engineering.uiuc.edu 2007-10-01 19:12:26 +00:00
Родитель 9c28e24d10
Коммит 4a352eb881
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -1795,12 +1795,10 @@ nsDownload::OnProgressChange64(nsIWebProgress *aWebProgress,
}
}
// Fetch the entityID
// Fetch the entityID, but if we can't get it, don't panic (non-resumable)
nsCOMPtr<nsIResumableChannel> resumableChannel(do_QueryInterface(aRequest));
if (resumableChannel) {
rv = resumableChannel->GetEntityID(mEntityID);
NS_ENSURE_SUCCESS(rv, rv);
}
if (resumableChannel)
(void)resumableChannel->GetEntityID(mEntityID);
// Update the state and the database
rv = SetState(nsIDownloadManager::DOWNLOAD_DOWNLOADING);