Closed
Bug 1618621
Opened 5 years ago
Closed 5 years ago
PDF viewer never gets into a "ready to print" state inside a display:none iframe
Categories
(Firefox :: PDF Viewer, defect)
Firefox
PDF Viewer
Tracking
()
RESOLVED
FIXED
Firefox 76
People
(Reporter: bzbarsky, Unassigned)
References
Details
Testcase:
<iframe style="display: none" src="test.pdf"></iframe>
<button onclick="frames[0].print()">Click me</button>
Load that over HTTP from somewhere that has a test.pdf. Wait a bit. Click the button. Instead of the PDF getting printed properly, you will get the "The PDF is not fully loaded for printing" alert.
I haven't managed to sort out the PDF viewer code enough so far to figure out why this is going on. Brendan, do you know offhand?
Reporter | ||
Updated•5 years ago
|
Flags: needinfo?(bdahl)
Reporter | ||
Comment 1•5 years ago
|
||
I put a live testcase at http://web.mit.edu/bzbarsky/www/testcases/pdf-printing/print-with-display-none.html
Updated•5 years ago
|
See Also: → https://github.com/mozilla/pdf.js/pull/11646
Updated•5 years ago
|
Updated•5 years ago
|
Flags: needinfo?(bdahl)
Target Milestone: --- → Firefox 76
You need to log in
before you can comment on or make changes to this bug.
Description
•