I'm currently developping a firefox extension which basically insert an iframe in the current page when the user click on the extension icon. I managed to insert the iframe code, I figured out how to link the src attribute to my html file.
In the chrome version, I simply do a
var main_html = chrome.extension.getURL('main.html');
And I pass the link to the src attribute of the iframe like that :
iframe.setAttribute("src",main_html);
So main_html is a link like resource://idofmyextension/content/data/main.html
But, as I suspected, I get a security error telling me that the content located at the current url cannot load data or establish a link to my main.html file.
Is there a way to pass this security restriction ? Or another way to load my html file in my iframe ?
Thanks in advance.