mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 395330 - Active downloads don't appear in download manager. r=sdwilsh, blocking-ff3=mconnor
This commit is contained in:
parent
6360c6c769
commit
6607ea668e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user