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)

defect
Not set
normal

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)

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.

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...

Status: NEW → RESOLVED
Closed: 10 months ago
Depends on: 1625949
Resolution: --- → FIXED
Flags: needinfo?(bdahl)
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.