зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
4538f6ba96
Коммит
d53f4f300f
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче