зеркало из https://github.com/mozilla/gecko-dev.git
Bug 233611: Download Manager Closes after download is cancelled, retried, and cancelled again, patch by Son Le <son.le0@gmail.com>, r=mconnor
This commit is contained in:
Родитель
39d52561f2
Коммит
1e9d8f5eed
|
@ -2214,6 +2214,8 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
gObserverService->NotifyObservers(NS_STATIC_CAST(nsIDownload *, this), "dl-done", nsnull);
|
||||
}
|
||||
|
||||
nsAutoString path;
|
||||
|
@ -2242,8 +2244,6 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
|||
}
|
||||
#endif
|
||||
|
||||
gObserverService->NotifyObservers(NS_STATIC_CAST(nsIDownload *, this), "dl-done", nsnull);
|
||||
|
||||
// break the cycle we created in AddDownload
|
||||
mCancelable = nsnull;
|
||||
|
||||
|
@ -2398,4 +2398,3 @@ nsDownload::IsPaused()
|
|||
{
|
||||
return mPaused;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче