Closed
Bug 1618955
Opened 5 years ago
Closed 5 years ago
PDF viewer never gets into a "ready to print" state inside an iframe with a "too small" size
Categories
(Firefox :: PDF Viewer, defect)
Firefox
PDF Viewer
Tracking
()
RESOLVED
FIXED
Firefox 76
People
(Reporter: bzbarsky, Unassigned)
References
Details
Testcase:
<iframe style="width: 10px; height: 10px" src="test.pdf"></iframe>
<button onclick="frames[0].print()">Click me</button>
Live version at http://web.mit.edu/bzbarsky/www/testcases/pdf-printing/print-with-small-size.html
Load the testcase, 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.
The same thing happens at 40px by 40px; going to 80px by 80px seems to make things work.
Flags: needinfo?(bdahl)
Comment 1•5 years ago
|
||
It's real interesting, in my test case, I can set the width to 1px and the cut-off point of it not working is height lower than 33px.
![]() |
Reporter | |
Comment 2•5 years ago
|
||
I suspect, based on nothing but guesswork, it has to do with whether any of the actual page being rendered, which is below the toolbar, is visible...
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
•