开发者

Firefox addon: contentaccessible=yes

Is it dangerous to have the "contentaccessible=yes" fla开发者_JAVA百科g in your Firefox addon? And is there anyway to limit it to just be contentaccessible=yes for one image?


Yes it's a bit dangerous but manageable if you are careful. And AFAIK you can only make an entire directory accessible.

You'll want to create a directory where web accessible things can reside. Your chrome.manifest ends up looking something like this:

content   your-add-on             chrome/skin/web/ contentaccessible=yes

Put your image in the chrome/skin/web/ directory and it will be available and it will be available like this:

<img src="chrome://your-add-on/content/installed.png"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜