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 12:12:26 -07:00
parent 6360c6c769
commit 6607ea668e

View File

@ -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);