зеркало из https://github.com/mozilla/gecko-dev.git
Download manager. Not part of build.
This commit is contained in:
Родитель
4785893294
Коммит
ca2e741ad8
|
@ -312,6 +312,8 @@ nsDownloadManager::AddDownload(nsIDownloadItem* aDownloadItem)
|
|||
nsresult rv = GetDownloadsContainer(getter_AddRefs(downloads));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// such assumptions are pretty much okay because the client presumably used
|
||||
// createDownload to create the download item, which creates a new instance of DownloadItem
|
||||
DownloadItem* item = NS_STATIC_CAST(DownloadItem*, aDownloadItem);
|
||||
item->SetDownloadManager(this);
|
||||
|
||||
|
|
|
@ -109,7 +109,6 @@ protected:
|
|||
nsresult GetDialogListener(nsIWebProgressListener** aInternalListener);
|
||||
|
||||
private:
|
||||
nsIRDFDataSource* mDataSource;
|
||||
nsDownloadManager* mDownloadManager;
|
||||
|
||||
nsString mPrettyName;
|
||||
|
|
|
@ -61,7 +61,6 @@ nsDownloadProgressListener.prototype = {
|
|||
{
|
||||
if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)
|
||||
{
|
||||
this.downloadItem = null;
|
||||
// we are done downloading...
|
||||
// Indicate completion in status area.
|
||||
var msg = getString( "completeMsg", this.doc );
|
||||
|
|
Загрузка…
Ссылка в новой задаче