Closed Bug 511883 Opened 15 years ago Closed 15 years ago

window.print() doesn't work from inside a frame

Categories

(Core :: Layout, defect, P1)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: martijn.martijn, Assigned: smaug)

References

()

Details

(Keywords: regression, testcase)

Attachments

(2 files)

Attached file testcase
See testcase, a print dialog should appear, this regressed when bug 352093 landed.
Flags: blocking1.9.2?
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P2
So printing a frame somehow depends on that frame having a widget?  Seems like it shouldn't...
This sucks actually. I tried to avoid supporting print preview of an iframe because I thought only chrome could do that, and although I guess that's still true, I didn't know content could print iframes. The problem is that the print engine expects a widget at the root and I don't know how hard it would be to fix that for printing --- I know it looked hard for print preview.

Olli, would you possibly be able to look at this? I'm suspect your cloning patch fixes it but I guess we can't backport that to 1.9.2 :-(.
I'll look at this.
Assignee: nobody → Olli.Pettay
Attached patch patchSplinter Review
We use mParentWidget only when creating print preview.
Attachment #399289 - Flags: review?(roc)
Martijn, do you know if it's possible to write a mochitest here? You can probably set a pref to disable the dialog box, but I guess the test output still goes to the default printer, and that would be bad...
Flags: in-testsuite?
Flags: in-litmus?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Priority: P2 → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: