Closed Bug 408351 Opened 17 years ago Closed 17 years ago

Double click download should do default action (first item in menu)

Categories

(Toolkit :: Downloads API, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9beta3

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

Attachments

(1 file)

After bug 407655 lands, the first item is the default action, so instead of redefining the default actions for each state in the double click code, we can just use the first item's command.
Attached patch v1Splinter Review
Move the logic into a separate function for doing the default for selected item. Note that the double click handler is only for the gDownloadsView which only contains richlistitem downloads.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #293345 - Flags: review?(comrade693+bmo)
Comment on attachment 293345 [details] [diff] [review]
v1

r=sdwilsh
Attachment #293345 - Flags: review?(comrade693+bmo) → review+
Attachment #293345 - Flags: approval1.9?
Attachment #293345 - Flags: approval1.9? → approval1.9+
Checking in toolkit/mozapps/downloads/content/downloads.js;
/cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v  <--  downloads.js
new revision: 1.118; previous revision: 1.117
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-litmus?
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M11
Verified; tested with failed, paused, and of course completed download types on:

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b3pre) Gecko/2007121802 Minefield/3.0b3pre

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2007121801 Minefield/3.0b3pre

and Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2007121802 Minefield/3.0b3pre
Status: RESOLVED → VERIFIED
I have amended the following testcases to include double-clicking as well as Enter/Return (to cover bug 408350).

Active downloads: https://litmus.mozilla.org/show_test.cgi?id=4552
Paused downloads: https://litmus.mozilla.org/show_test.cgi?id=4577
Cancelled/failed downloads: https://litmus.mozilla.org/show_test.cgi?id=4580
Completed downloads: https://litmus.mozilla.org/show_test.cgi?id=3976

in-litmus+
Flags: in-litmus? → in-litmus+
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: