title: Firefox 19 print PDF from JavaScript
body: <p>I have a "Print" button which invokes the following JavaScript</p>
  
  <pre><code>window.frames.myPdfFrame.print();
  </code></pre>
  
  <p>where "myPdfFrame" refers to an iframe with a PDF for the src.</p>
  
  <p>In Chrome and Firefox 18 (and below) this opens the print dialog as expected, but as of Firefox 19 I get the following error</p>
  
  <pre><code>Error: Permission denied to access property 'print'
  </code></pre>
  
  <p>I assume this is related to using the <a href="http://www.mozilla.org/en-US/firefox/19.0/releasenotes/" rel="noreferrer">embedded PDF viewer released with Firefox 19</a> rather than the Adobe plugin. Using the print icon in the toolbar of the PDF plugin works as expected.</p>
  
  <p>Is there a way to invoke the print dialog on an inline PDF in Firefox 19 from Javascript?</p>