开发者

Firefox addon: contentaccessible=yes

开发者 https://www.devze.com 2023-03-07 18:34 出处:网络
Is it dangerous to have the \"contentaccessible=yes\" fla开发者_JAVA百科g in your Firefox addon? And is there anyway to limit it to just becontentaccessible=yes for one image?Yes it\'s a bit dangerous

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

精彩评论

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