I am developing an addon using the Firefox Addon SDK (v.1.11). My extension dynamically creates an iframe on each website, and then uploads an html file that includes other resources such as images, font files, etc. From adding to the local directory.
Problem
When loading any of these local resources (for example, "resource: //"), the iframe cannot display them and a message is displayed:
Security bug. Content at http://www.XXX may not load or link to Resource: // XXX
This is a security measure introduced in Firefox 3 . When developing without Addon SDK, the path around it declares a directory with "contentaccessible = yes", which makes the contents of the directory accessible to everyone, including my addition. However, I could not find similar functionality using the Addon SDK. Is there a better way to use local data in an iframe that my addon creates and inserts into a page?
source share