Open Bug 197556 Opened 21 years ago Updated 2 years ago

Print job not correctly submitted from hidden frame

Categories

(Core :: Printing: Output, defect)

x86
Windows 2000
defect

Tracking

()

People

(Reporter: baltner, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130

I have set up a frameset with rows="100%,*" to create a hidden frame. My
application includes a "Print" button which sends a prienter friendly view of
the contents in the main frame to the hidden frame. In the hidden frame, the
body tag includes this event handler: onLoad="self.focus();self.print()" which
should send the content to the printer when the page is finished loading. It
doesn't. Instead, I get the printer dialog box and submit the print job but then
Mozilla spawns a dialog box which includes the line: "Progress: Preparing..."
and my PrintMonitor shows that the job status is always "Spooling." It will stay
that way forever unless I cancel the print job (even then the status line
remains in my Print Monitor display...until I close the browser).

Remarks: 
   a)If I change the frameset to rows="99%,1%" or any other values, the problem
does not occur. In other words, the page finishes spooling, and the printer
prints the page displayed in the lower frame. It is only when the frame is
"hidden" that this problem occurs.
   b)I do not have this problem in Netscape 4.x nor in IE 5.x. My print function
works just fine in these browsers.


Reproducible: Didn't try

Steps to Reproduce:
1. Call up page to be printed...it has stuff on it that I don't want to see in
hard copy so I created a "printer-friendly" view accessible form a "Print"
button on the page.
2. Hit Print button
3. Specify parameters in Printer dialog box and submit

Actual Results:  
Dialog box labeled "Printing" appears with the fields

Title: <URL of my page>
Progress: Preparing....

and hangs forever if I let it

Expected Results:  
submit the print job to the printer

Modern theme.

This is all behind the NASA firewall, so there is no way for you to test it
directly, but it should be easy enough for you to whip up an example that you
can run on a local box. I'd be happy to write this for you and send it to you if
you want. Components include: a) html page defining frameset  b) html page which
appears in the visible frame that includes a button or link which sends output
to the hidden frame and which output includes the onLoad handler described above.
Can you attach a test case?
Attached file testcase1
Basic testcase created from description of bug reporter
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a4) Gecko/20040907
I can confirm that the print dialog box gets stuck on "spooling" and the page
never actually gets printed out. (but I will reduce the Severity of this bug
from Critical to Minor).
Severity: critical → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
*** Bug 195375 has been marked as a duplicate of this bug. ***
*** Bug 289673 has been marked as a duplicate of this bug. ***
Attached file Testcase2
This bug is still present with the latest nightly Firefox trunk build
(2005-04-08, WinXP).
After closing the print dialog, I don't get an alert dialog, but I can't change

to a different site on that page.
Severity: minor → normal
Considering this bug causes the printing to hang, which means you can no longer
enter a new URL without restarting the application (see Mozilla Bug 244705),
seems this bug should have a higher severity level.
Assignee: printing → nobody
QA Contact: sujay → printing
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: