Open Bug 80572 Opened 23 years ago Updated 2 years ago

window.print prints a blank page when called too early

Categories

(Core :: Printing: Output, defect, P3)

x86
Windows 2000
defect

Tracking

()

Future

People

(Reporter: adamlock, Unassigned)

References

()

Details

The document specified by the URL above contains some Javascript that calls window.print while the page is still loading. Instead of waiting for loading to complete and printing the correct content, it just prints a single blank page. See bug 66934 for some background on the problem.
Target Milestone: --- → mozilla0.9.3
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
0.9.5 is out the door. bumping TM up by one.
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla1.0.1
Reassigning to Rod.
Assignee: dcone → rods
Priority: -- → P1
Target Milestone: mozilla1.0.1 → Future
Priority: P1 → P2
(In reply to comment #0) I don't think this is a bug at all. There are many cases where you cn can have Javascript try to do things too soon, before the page is completely loaded. The normal way to handle it is to call the print() method from the onload handler on the body. That handler only runs once everything has arraived.
Assignee: rods → nobody
QA Contact: sujay → printing
This is WFM. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.