Closed Bug 1218317 Opened 9 years ago Closed 8 years ago

Size of files not displayed in "about:downloads" after restarting Firefox

Categories

(Firefox for Android Graveyard :: Download Manager, defect)

All
Android
defect
Not set
normal

Tracking

(firefox41 affected, firefox42 affected, firefox43 affected, firefox44 affected, firefox48 fixed, fennec+)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox41 --- affected
firefox42 --- affected
firefox43 --- affected
firefox44 --- affected
firefox48 --- fixed
fennec + ---

People

(Reporter: u421692, Assigned: JanH, Mentored)

References

Details

(Whiteboard: [lang=js])

Attachments

(3 files)

Steps to reproduce:
1. Download a file, check download manager
2. Restart Firefox, check download manager

Expected result:
1. Only one figure is displayed after the decimal separator for file size
2. Size of file is correctly displayed

Actual result:
1. Fourteen figures are displayed after the decimal separator for file size
2. Size of file is not displayed (unknown size) 

PS:
The issue whit the figures after the decimal separator is not reproducing on Firefox 41.0.2
You should take a look in the code here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/aboutDownloads.js
Mentor: margaret.leibovic
Whiteboard: [lang=js]
tracking-fennec: ? → +
Assignee: nobody → jh+bugzilla
Comment on attachment 8742471 [details]
MozReview Request: Bug 1218317 - Retrieve the file size for finished downloads. r=margaret

https://reviewboard.mozilla.org/r/47215/#review44239

Nice. (Disclaimer: I didn't build this to test, but I'll trust you tested it)
Attachment #8742471 - Flags: review?(margaret.leibovic) → review+
I did, that's how I discovered to check for download.target.exists as well, so downloads where the file has been deleted don't show up as "0 bytes".

https://treeherder.mozilla.org/#/jobs?repo=try&revision=c26caa4d2d3e&selectedJob=19682369
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/2a71ec431c13
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Size of files is displayed in "about:downloads" after restarting Firefox, but fourteen figures are still displayed after the decimal separator for file size
Tested using:
Device: Samsung Galaxy S7 Edge (Android 6.0)
Build: Firefox for Android 49.0a1 (2016-05-03)
See Also: → 1270429
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.