Closed Bug 381927 Opened 17 years ago Closed 17 years ago

end times in download manager properties are wrong or missing

Categories

(Toolkit :: Downloads API, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: Peter6, Assigned: sdwilsh)

References

Details

(Keywords: regression)

Attachments

(1 file)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070524 Minefield/3.0a5pre ID:2007052407 [cairo]

repro:
start FF
download something
rightclick and select properties

result:
During download both the start and end time are displayed and the same.
after download only the starttime is shown
End time doesn't get set until it finishes, so that kinda makes sense.  It really shouldn't be displayed during the download.  As for it not showing up in the end, yeah...that's a problem.
Assignee: nobody → sdwilsh
OS: Windows XP → All
Hardware: PC → All
Summary: start and end times in download manager properties are wrong → end times in download manager properties are wrong or missing
before the download is finished:

the start time is set when you click on the link to download
the end time is set when you hit [OK] in the save as dialog

( tested on http://hourly-archive.localgho.st/ )
Er right, that makes sense with the code now that I've looked again.  I just can't seem to figure out what makes them hidden (what I see that makes them hidden doesn't make sense as to why it'd do it like it does now).
Attached patch v1.0Splinter Review
I was doing something stupid before, but didn't realize it because the code was really difficult to read.  I cleaned it up a bit in the process of fixing this bug.

This code cannot land until Bug 382839 lands.
Attachment #267500 - Flags: review?(mano)
Comment on attachment 267500 [details] [diff] [review]
v1.0

r=mano.
Attachment #267500 - Flags: review?(mano) → review+
Checking in toolkit/mozapps/downloads/content/downloadProperties.js;
new revision: 1.6; previous revision: 1.5
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a6pre) Gecko/20070613 Minefield/3.0a6pre ID:2007061304 [cairo]

VERIFIED
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: