Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the bookmark icon in chrome?

when I use:

<img src="chrome://favicon/http://www.google.com.hk"/>

in my extension.It got something wrong.It warned

"Not allowed to load local resource:chrome://favicon/http://www.google.com.hk"

How can I fix it?

like image 762
Tom Avatar asked Apr 24 '12 16:04

Tom


1 Answers

Double-check to make sure you've added the "chrome://favicon/" permission.

Is this a "manifest_version" : 2 extension? I'm not familiar with them, but they may require that you specify a Content Security Policy that allows this.

like image 142
Pixievolt No. 1 Avatar answered Oct 28 '22 15:10

Pixievolt No. 1