mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
Bug 391869 - pause -> cancel -> retry doesn't resume/retry download. r=cbiesinger
This commit is contained in:
parent
bc6feecd10
commit
86ee75e0f0
@ -793,6 +793,10 @@ nsDownloadManager::CancelDownload(PRUint32 aID)
|
||||
if (CompletedSuccessfully(dl->mDownloadState))
|
||||
return NS_OK;
|
||||
|
||||
// if the download is paused, we have to resume it so we can cancel it
|
||||
if (dl->mPaused)
|
||||
(void)dl->PauseResume(PR_FALSE);
|
||||
|
||||
// Cancel using the provided object
|
||||
if (dl->mCancelable)
|
||||
dl->mCancelable->Cancel(NS_BINDING_ABORTED);
|
||||
|
Loading…
Reference in New Issue
Block a user