Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox addon: contentaccessible=yes

Is it dangerous to have the "contentaccessible=yes" flag in your Firefox addon? And is there anyway to limit it to just be contentaccessible=yes for one image?

like image 881
Ryan Avatar asked Mar 18 '26 20:03

Ryan


1 Answers

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"/>
like image 131
Bryan Clark Avatar answered Mar 21 '26 10:03

Bryan Clark