Bug 11195 - add API to provide your own default favicon
Summary: add API to provide your own default favicon
Status: CLOSED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Enhancement
Assignee: Brady Eidson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 14:12 PDT by Rachael Worthington (cheers)
Modified: 2006-10-10 20:32 PDT (History)
0 users

See Also:


Attachments
Patch to add delegate (9.68 KB, patch)
2006-10-09 17:36 PDT, Brady Eidson
sullivan: review-
Details | Formatted Diff | Diff
Lets pretend that last patch didn't happen, and lets be amazed it compiled (9.68 KB, patch)
2006-10-09 18:16 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Lets pretend I attached the right patch (9.69 KB, patch)
2006-10-09 18:18 PDT, Brady Eidson
sullivan: review-
Details | Formatted Diff | Diff
Lets pretend I'm getting closer (10.31 KB, patch)
2006-10-09 18:53 PDT, Brady Eidson
sullivan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rachael Worthington (cheers) 2006-10-06 14:12:51 PDT
It would be handy to allow users to specify their own default favicon that goes with their UI, instead of being locked into the blue globe. It would be even nicer if we could then provide a different icon for graphite and aqua UI styles.
Comment 1 Brady Eidson 2006-10-09 17:26:07 PDT
After much consideration, and discussion with Rachael in #webkit, I think a good way to do this is to introduce a WebIconDatabaseDelegate to override the default icon behavior.  This seems to fit will with common designs in the rest of WebKit.

A patch is emmenent.
Comment 2 Brady Eidson 2006-10-09 17:36:11 PDT
Created attachment 11005 [details]
Patch to add delegate
Comment 3 John Sullivan 2006-10-09 18:07:36 PDT
Comment on attachment 11005 [details]
Patch to add delegate

I talked with Brady on IRC and pointed out a few issues.
Comment 4 Brady Eidson 2006-10-09 18:16:40 PDT
Created attachment 11006 [details]
Lets pretend that last patch didn't happen, and lets be amazed it compiled
Comment 5 Brady Eidson 2006-10-09 18:17:17 PDT
Comment on attachment 11006 [details]
Lets pretend that last patch didn't happen, and lets be amazed it compiled

nevermind, lets pretend I attached the correct patch
Comment 6 Brady Eidson 2006-10-09 18:18:01 PDT
Created attachment 11007 [details]
Lets pretend I attached the right patch
Comment 7 John Sullivan 2006-10-09 18:36:30 PDT
Comment on attachment 11007 [details]
Lets pretend I attached the right patch

I gave Brady more comments on IRC.
Comment 8 Brady Eidson 2006-10-09 18:53:37 PDT
Created attachment 11008 [details]
Lets pretend I'm getting closer
Comment 9 John Sullivan 2006-10-09 18:57:20 PDT
Comment on attachment 11008 [details]
Lets pretend I'm getting closer

Looking good!
Comment 10 Brady Eidson 2006-10-09 19:15:56 PDT
Commited in r16956
Comment 11 Brady Eidson 2006-10-09 19:17:12 PDT
Rachael - please verify and close :)
Comment 12 Rachael Worthington (cheers) 2006-10-10 20:32:47 PDT
works beautifully for OmniWeb. Thank you folks!!