Closed Bug 391857 Opened 17 years ago Closed 17 years ago

can't open file with doubleclick (new DM)

Categories

(Toolkit :: Downloads API, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9alpha8

People

(Reporter: Peter6, Assigned: rflint)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

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
Attached patch PatchSplinter Review
This patch makes double-clicking perform the same action as the first button per the mockup docs.
Assignee: nobody → ryan
Status: NEW → ASSIGNED
Attachment #276350 - Flags: review?(sdwilsh)
Depends on: 388517
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 on attachment 276350 [details] [diff] [review] Patch er, nevermind that - just add the comment please.
Attachment #276350 - Flags: review- → review+
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
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
Depends on: 392255
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: