title: Loading a local html file in an injected iframe within a firefox extension
body: <p>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.</p>
  
  <p>In the chrome version, I simply do a </p>
  
  <pre><code> var main_html = chrome.extension.getURL('main.html');
  </code></pre>
  
  <p>And I pass the link to the src attribute of the iframe like that :</p>
  
  <pre><code> iframe.setAttribute("src",main_html);
  </code></pre>
  
  <p>So main_html is a link like resource://idofmyextension/content/data/main.html</p>
  
  <p>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.</p>
  
  <p>Is there a way to pass this security restriction ? Or another way to load my html file in my iframe ?</p>
  
  <p>Thanks in advance.</p>