I’m developing extensions for Chrome, Safari and Firefox, and I need to add SWF file in my extension. I want to show it on a page. I read in documentation that I can store media files in Chrome and Safari extension.
Can I do the same with Firefox?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, a Firefox extension can also contain any files you like. But you probably meant to ask: “Can I get a URL of a file in my extension that will be usable on a web page?” If you are using the Add-on SDK then it is simply:
In a classic add-on it is slightly more complicated –
chrome://URLs normally cannot be used by web pages, for security reasons. You can however specify thecontentaccessibleflag for your namespace inchrome.manifest, e.g.:Then web pages will be able to use
chrome://myextension/content/file.swf. The other option would be to register aresource://namespace, these are always accessible from web pages.