diff --git a/toolkit/mozapps/downloads/content/DownloadProgressListener.js b/toolkit/mozapps/downloads/content/DownloadProgressListener.js index b3be75aa63fc..719d6a9ea3f6 100644 --- a/toolkit/mozapps/downloads/content/DownloadProgressListener.js +++ b/toolkit/mozapps/downloads/content/DownloadProgressListener.js @@ -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;