mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Download manager. Not part of build.
This commit is contained in:
parent
9518c712e9
commit
9b6d33f82b
@ -280,6 +280,7 @@ nsDownloadManager::AssertProgressInfoFor(const char* aPersistentDescriptor)
|
||||
else
|
||||
rv = mDataSource->Assert(res, gNC_ProgressPercent, intLiteral, PR_TRUE);
|
||||
|
||||
// update download state (not started, downloading, queued, finished, etc...)
|
||||
DownloadState state;
|
||||
internalDownload->GetDownloadState(&state);
|
||||
|
||||
@ -313,9 +314,6 @@ nsDownloadManager::AssertProgressInfoFor(const char* aPersistentDescriptor)
|
||||
|
||||
if (oldTarget)
|
||||
rv = mDataSource->Change(res, gNC_StatusText, oldTarget, literal);
|
||||
else
|
||||
rv = mDataSource->Assert(res, gNC_StatusText, literal, PR_TRUE);
|
||||
|
||||
|
||||
// update transferred
|
||||
PRInt32 current = 0;
|
||||
@ -329,7 +327,6 @@ nsDownloadManager::AssertProgressInfoFor(const char* aPersistentDescriptor)
|
||||
maxBytes.get()
|
||||
};
|
||||
|
||||
// first with the search text
|
||||
rv = mBundle->FormatStringFromName(NS_LITERAL_STRING("transferred").get(),
|
||||
strings, 2, getter_Copies(value));
|
||||
|
||||
|
@ -205,7 +205,6 @@ nsDownloadProgressListener.prototype = {
|
||||
},
|
||||
onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage, aDownload)
|
||||
{
|
||||
// XXX error handling
|
||||
},
|
||||
onSecurityChange: function(aWebProgress, aRequest, state, aDownload)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user