mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 15:12:28 +00:00
Bug 231361: download manager doesn't show downloaded filesize after 1MB if the filesize is "unknown"; p=bisi@pikslar.com, r=ben
This commit is contained in:
parent
b9ec93cb09
commit
529a3d9097
@ -218,8 +218,14 @@ DownloadProgressListener.prototype =
|
||||
|
||||
var format = "";
|
||||
if (!progressHasMB && !totalHasMB) {
|
||||
format = this._statusFormatUnknownKB;
|
||||
format = this._replaceInsert(format, 1, aKBytes);
|
||||
if (!aTotalKBytes) {
|
||||
format = this._statusFormatUnknownKB;
|
||||
format = this._replaceInsert(format, 1, aKBytes);
|
||||
} else {
|
||||
format = this._statusFormatKBKB;
|
||||
format = this._replaceInsert(format, 1, aKBytes);
|
||||
format = this._replaceInsert(format, 2, aTotalKBytes);
|
||||
}
|
||||
}
|
||||
else if (progressHasMB && totalHasMB) {
|
||||
format = this._statusFormatMBMB;
|
||||
|
Loading…
x
Reference in New Issue
Block a user