Closed Bug 236988 Opened 20 years ago Closed 20 years ago

Should show application icons in download manager

Categories

(Toolkit :: Downloads API, defect, P3)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
mozilla1.7.4

People

(Reporter: bugs, Assigned: bugs)

References

()

Details

Attachments

(1 file, 2 obsolete files)

When we have an application's file, we should be able to show its icon. See URL.
Attached patch partial work (obsolete) — Splinter Review
If the file being referenced is an executable, make moz-icon extract the icon
at index 0 from that file's resources, rather than using the system exe icon (a
plain looking empty window)
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → Firefox1.0beta
*** Bug 236235 has been marked as a duplicate of this bug. ***
Attachment #143481 - Attachment is obsolete: true
Attachment #143483 - Attachment is obsolete: true
Comment on attachment 143538 [details] [diff] [review]
OK, done.

After looking at mkaply's patch in the other bug and adapting the download
manager slightly, turns out nothing needs to be done in the windows version of
nsIconChannel... However there is still a bug in nsIconURI.

When SetSpec is called, the scheme is chopped off, leaving: "//file:///c:\..."
... the code is structured so that it assumes that if the remainder starts with
"//" it's not a URL.... but the case I just described is clearly a File URL. So
we need the code to trim the "//" and THEN check for the "file://" prefix as
the determination of whether or not this is a file URL.
Attachment #143538 - Flags: review?(mscott)
Attachment #143538 - Flags: superreview?(bryner)
Attachment #143538 - Flags: review?(mscott) → review+
Attachment #143538 - Flags: superreview?(bryner) → superreview+
Comment on attachment 143538 [details] [diff] [review]
OK, done.

a=asa
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
I still dont see this, tested on 2 different computers with latest builds,
windows 2000 and windows XP.
to Ben's comment.
https://bugzilla.mozilla.org/show_bug.cgi?id=280944
looks like DUP,
but there are still problems with URI used as native path, at least for BeOS
thanks, fyysik!  I appreciate you looking at this.  The download manager icon fix won't really be complete until this is also taken care of.
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: