Closed Bug 1618621 Opened 8 months ago Closed 7 months ago

PDF viewer never gets into a "ready to print" state inside a display:none iframe

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="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?

Flags: needinfo?(bdahl)
Blocks: 1618626
Status: NEW → RESOLVED
Closed: 7 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.