Closed
Bug 1618955
Opened 11 months ago
Closed 10 months 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
(Blocks 1 open bug)
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•11 months 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•11 months 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•11 months ago
|
See Also: → https://github.com/mozilla/pdf.js/pull/11646
Updated•10 months ago
|
Updated•10 months 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
•