WebRunner to use favicons if no icon is specified

RESOLVED FIXED

Status

Mozilla Labs
Prism
--
enhancement
RESOLVED FIXED
10 years ago
7 years ago

People

(Reporter: John Munro, Assigned: Matthew Gertner)

Tracking

Details

Attachments

(4 attachments, 3 obsolete attachments)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.6; .NET CLR 3.5.20404) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) Gecko/2007092312 Webrunner/0.7

It would be nice if WebRunner could use the web site's favicon if no icon has been specified in the ini file rather than showing the WebRunner planet icon.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Component: Prism → Prism
Product: Other Applications → Mozilla Labs
(Assignee)

Updated

10 years ago
Assignee: nobody → matthew
Status: UNCONFIRMED → NEW
Ever confirmed: true
Duplicate of this bug: 407157
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 2

10 years ago
Created attachment 294074 [details] [diff] [review]
WIP, full patch of all my changes so far including preliminary favicon support

This patch includes the code for bugs 400179 and 408362. I haven't posted the latter yet since I want to test on Windows first. Currently includes support for Windows and Mac, tested only on Mac.

Currently I download the favicon to the profile directory, which is kind of a hack, and then check whether it is there when the user clicks OK to create the app/shortcut. So if they click before the icon is downloaded they will get the default app icon. I'll figure out a way to hold the icon in memory so it doesn't have to be written to disk. The UI should take care of showing the user that the icon is loading and displaying it once it is loaded so they can decide if they want it or some other icon.
(Assignee)

Comment 3

10 years ago
Created attachment 294075 [details]
Icon for use with attachment 294074 [details] [diff] [review]
(Assignee)

Updated

10 years ago
Attachment #294075 - Attachment mime type: application/octet-stream → image/x-icns
(Assignee)

Comment 4

10 years ago
Created attachment 294251 [details] [diff] [review]
Latest WIP

This is tested and works on Mac and Windows. It's ready for review. Unfortunately it's beyond my abilities to make a proper patch until bug 408362 is committed. In the meantime, here's the latest WIP. As soon as we get consensus on 408362 and get it checked in I'll make a proper patch.
Attachment #294074 - Attachment is obsolete: true
(Assignee)

Updated

10 years ago
Depends on: 408362
(Assignee)

Comment 5

10 years ago
Created attachment 295772 [details] [diff] [review]
Consolidate patch to use platform-independent icons and generate from favicon if not available
(Assignee)

Comment 6

10 years ago
Created attachment 295777 [details] [diff] [review]
New patch, same as the old patch (but without the extraneous files)
Attachment #295772 - Attachment is obsolete: true
(Assignee)

Comment 7

10 years ago
Created attachment 295789 [details] [diff] [review]
Fixes build issues on win32,, add supports for 256x256 and 512x512 icons

I haven't tested the 512x512 and 256x256 icon support since this is only for Leopard and I have Tiger.
Attachment #295777 - Attachment is obsolete: true
Comment on attachment 295789 [details] [diff] [review]
Fixes build issues on win32,, add supports for 256x256 and 512x512 icons

tweaked common/components/src/windows/Makefile.in to use static CRT and add a manifest
Attachment #295789 - Flags: review+
(Assignee)

Comment 9

10 years ago
Created attachment 296114 [details] [diff] [review]
Get rid of the temporary file when generating from favicon
Attachment #296114 - Flags: review?(mark.finkle)
Attachment #296114 - Flags: review?(mark.finkle) → review+
(Assignee)

Updated

10 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
(Assignee)

Updated

10 years ago
Duplicate of this bug: 400179

Updated

7 years ago
You need to log in before you can comment on or make changes to this bug.