Open Bug 811776 Opened 12 years ago Updated 2 years ago

Printing hangs when printing a hidden iframe

Categories

(Core :: Printing: Output, defect)

6 Branch
x86
All
defect

Tracking

()

People

(Reporter: blorenz, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11

Steps to reproduce:

Followed the "Print an external page without opening it" example on the MDN https://developer.mozilla.org/en-US/docs/Printing


Actual results:

Firefox on Windows 7 hangs when trying to print to XPS or Printer on the initial click labeling the Process as Preparing. If I dismiss the hanging print dialog window and click the link again, it successfully prints. 


Expected results:

Dialog should process and page should print
I can confirm.
http://hg.mozilla.org/mozilla-central/rev/1b0226622e94
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/19.0 Firefox/19.0 ID:20121113030658

Regression window
Good:
http://hg.mozilla.org/mozilla-central/rev/8d126484c20b
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110513 Firefox/6.0a1 ID:20110514034026
Bad:
http://hg.mozilla.org/mozilla-central/rev/42d151a7b045
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110513 Firefox/6.0a1 ID:20110514070447
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=8d126484c20b&tochange=42d151a7b045

Regressed by:
42d151a7b045	Olli Pettay — Bug 307258 - Support beforeprint and afterprint events, r=mats, sr=roc
Blocks: 307258
Status: UNCONFIRMED → NEW
Component: Untriaged → Printing: Output
Ever confirmed: true
Keywords: regression
OS: Mac OS X → All
Product: Firefox → Core
Version: Trunk → 6 Branch
So Firefox doesn't hang, but the printing doesn't succeed?
(In reply to Olli Pettay [:smaug] from comment #2)
> So Firefox doesn't hang, but the printing doesn't succeed?

In windows7, yes
Summary: Firefox hangs when printing a hidden iframe → Printing hangs when printing a hidden iframe
Printing completes with the removal of the oHiddFrame.contentWindow.onafterprint().  I speculate Firefox is removing the element before the printing actually completes.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: