Why can't I use my own favicon in my extension's options page?

414 views
Skip to first unread message

Derek 囧

unread,
Jul 7, 2010, 3:02:12 PM7/7/10
to Chromium-extensions
Why can't I use my own favicon in my extension's options page?

I have tried *.ico , *.png , *.gif ,
and all of them, don't work at all. :(

Then how can I use my own favicon?

Gildas

unread,
Jul 7, 2010, 3:29:40 PM7/7/10
to Chromium-extensions
I have no idea what is exactly your problem with favicon but this
feature seems to work well. For example, "One Number" (https://
chrome.google.com/extensions/detail/cfkohgkpafhkpdcnfadadcibfboapggi)
has its own favicon in options page.

Arne Roomann-Kurrik

unread,
Jul 7, 2010, 3:49:41 PM7/7/10
to Derek 囧, Chromium-extensions
Derek, sharing code is the easiest way to help us understand what is causing the problem you're seeing.  How are you setting the favicon for the page?

~Arne


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


L1ke20N1njas

unread,
Jul 7, 2010, 3:13:07 PM7/7/10
to Chromium-extensions
How are you implementing it into your options.html?

Derek 囧

unread,
Jul 7, 2010, 3:51:55 PM7/7/10
to Chromium-extensions
<head>
<link rel="shortcut icon" href="favicon.ico" >
</head>

Derek 囧

unread,
Jul 7, 2010, 3:58:26 PM7/7/10
to Chromium-extensions
Like this:

<head>
<link rel="icon" type="image/png" href="favicon.png">
</head>

Arne Roomann-Kurrik

unread,
Jul 7, 2010, 4:24:42 PM7/7/10
to Derek 囧, Chromium-extensions
Instead of using a <link> element, you need to add a 16px icon in your extension's manifest, as described in the "icons" section of the manifest documentation:

"You can also specify a 16x16 icon to be used as the favicon for the extension's pages. The 16x16 icon is also displayed in the experimental infobar feature."

Here's a sample which demonstrates setting a favicon in this method: http://github.com/kurrik/chrome-extensions/tree/master/favicon-optionspage/

~Arne

Derek 囧

unread,
Jul 7, 2010, 4:29:20 PM7/7/10
to Chromium-extensions
Oh Thanks!
It works now! Problem solved.
Thank you. :D

On 7月7日, 下午3時24分, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> Instead of using a <link> element, you need to add a 16px icon in your
> extension's manifest, as described in the "icons" section of the manifest
> documentation:http://code.google.com/chrome/extensions/manifest.html#icons
>
> "You can also specify a 16x16 icon to be used as the favicon for the
> extension's pages. The 16x16 icon is also displayed in the experimental
> infobar<http://code.google.com/chrome/extensions/experimental.infobars.html>
> feature."
>
> Here's a sample which demonstrates setting a favicon in this method:http://github.com/kurrik/chrome-extensions/tree/master/favicon-option...
>
> ~Arne
>
>
>
> On Wed, Jul 7, 2010 at 12:58 PM, Derek 囧 <derek1...@gmail.com> wrote:
> > Like this:
>
> > <head>
> > <link rel="icon" type="image/png" href="favicon.png">
> > </head>
>
> > On 7月7日, 下午2時51分, Derek 囧 <derek1...@gmail.com> wrote:
> > > <head>
> > > <link rel="shortcut icon" href="favicon.ico" >
> > > </head>
>
> > > On 7月7日, 下午2時13分, L1ke20N1njas <L1ke20N1n...@live.com> wrote:
>
> > > > How are you implementing it into your options.html?
>
> > > > On Jul 7, 2:02 pm, Derek 囧 <derek1...@gmail.com> wrote:
>
> > > > > Why can't I use my own favicon in my extension's options page?
>
> > > > > I have tried *.ico , *.png , *.gif ,
> > > > > and all of them, don't work at all. :(
>
> > > > > Then how can I use my own favicon?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> > .
Reply all
Reply to author
Forward
0 new messages