Closed
Bug 391857
Opened 17 years ago
Closed 17 years ago
can't open file with doubleclick (new DM)
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha8
People
(Reporter: Peter6, Assigned: rflint)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
2.42 KB,
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081115 Minefield/3.0a8pre ID:2007081115
repro:
download a .zip
doubleclick on the icon/filename
result:
nada
Assignee | ||
Comment 1•17 years ago
|
||
This patch makes double-clicking perform the same action as the first button per the mockup docs.
Comment 2•17 years ago
|
||
Comment on attachment 276350 [details] [diff] [review]
Patch
>+ switch (state) {
>+ case Ci.nsIDownloadManager.DOWNLOAD_FINISHED:
>+ gDownloadViewController.doCommand("cmd_open");
>+ break;
So, I don't quite like this because cmd_open is disabled when the file doesn't exist. Instead of the switch statement, you could probably get away with iterating through these four commands and seeing which, if any, are enabled, and then execute it. If none are enabled, just do nothing.
>+ gDownloadsView.addEventListener("dblclick", onDownloadDblClick, false);
Also, please add a comment above this line stating something like "Even Listeners". This was in here before, but I had actually gutted them all out.
Attachment #276350 -
Flags: review?(sdwilsh) → review-
Comment 3•17 years ago
|
||
Comment on attachment 276350 [details] [diff] [review]
Patch
er, nevermind that - just add the comment please.
Attachment #276350 -
Flags: review- → review+
Assignee | ||
Comment 4•17 years ago
|
||
mozilla/toolkit/mozapps/downloads/content/downloads.js 1.71
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite-
Flags: in-litmus?
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M8
Reporter | ||
Comment 5•17 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081201 Minefield/3.0a8pre ID:2007081201
VERIFIED
Status: RESOLVED → VERIFIED
Comment 6•17 years ago
|
||
Flags: in-litmus? → in-litmus+
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•