I have a "Print" button which invokes the following JavaScript
window.frames.myPdfFrame.print();
where "myPdfFrame" refers to an iframe with a PDF for the src.
In Chrome and Firefox 18 (and below) this opens the print dialog as expected, but as of Firefox 19 I get the following error
Error: Permission denied to access property 'print'
I assume this is related to using the embedded PDF viewer released with Firefox 19 rather than the Adobe plugin. Using the print icon in the toolbar of the PDF plugin works as expected.
Is there a way to invoke the print dialog on an inline PDF in Firefox 19 from Javascript?