title: Cannot open File protocol links in Resource protocol page in Firefox 41
body: <p>I've made a local file (log.html) in Firefox profile and tried to open it in an add-on page (add-on folder/data/log.html and it's shown as Resource protocol in URL bar). </p>
  
  <pre><code>self.port &amp;&amp; self.port.on('add-log-path', function(payLoad) {
    addLogPath(payLoad);
  });
  
  function addLogPath(url) {
      // url == "file:///Users/usr/Library/Application Support/Firefox/Profiles/05rhodfg.cfxo/log.html"
      $('#logpath').attr('href', url);
  }
  </code></pre>
  
  <p>I've also tried changing that to JS method window.open</p>
  
  <pre><code>function addLogPath(url) {
      $('#logpath').on("click", function() {
          window.open(url);
      });
  }
  </code></pre>
  
  <p>But the error is</p>
  
  <blockquote>
    <p>JavaScript error: , line 0: Error: Access to
    'file:///Users/usr/Library/Application%20Support/Firefox/Profiles/05rhodfg.cfxo/log.html'
    from script denied</p>
  </blockquote>
  
  <p>BTW, before Firefox version 41, it has no problem doing this.
  Can you suggest other workaround to solve this? Thank you!</p>
  
  <p>edit: 
  <a href="https://www.dropbox.com/s/iijff8a5vo5guq7/fileProtocolExample.zip?dl=0" rel="nofollow">added add-on example to reproduce the problem</a></p>
  
  <p>download and run the following statement in Terminal:
  $ cd fileProtocolExample &amp;&amp; cfx run</p>