Closed
Bug 334760
Opened 18 years ago
Closed 18 years ago
When printing an iframe using cocoa widgets: "Printer Error: An unknown error occurred while printing"
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sharparrow1, Assigned: sharparrow1)
References
Details
Attachments
(2 files, 1 obsolete file)
46.97 KB,
patch
|
Details | Diff | Splinter Review | |
1.21 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Pretty self-explanatory. Potential fix: in nsPresShell::CreateRenderingContext, add loop to search for the widget that stops at the root view.
Assignee | ||
Comment 1•18 years ago
|
||
Hmm, I'm rather tempted to make nsIView::CreateWidget not create a widget when there isn't a parent widget; that would be the most correct thing to do. I'm not really prepared to deal with the regressions from that at this point, however. I'll file a bug on that, I think, and put the hack fix in here for the moment.
Assignee | ||
Comment 2•18 years ago
|
||
Someone on the Mac needs to double-check that this works, but it should. The idea is that we shouldn't make a widget if we're not going to initialize it. I won't be able to work on Gecko for a long time after Saturday, though, so I don't really want to take responsibility for a somewhat risky change like this.
Attachment #219237 -
Flags: review?(roc)
Comment 3•18 years ago
|
||
Attachment 219237 [details] [diff] causes this crash when attempting to print a page with an iframe.
Assignee | ||
Comment 4•18 years ago
|
||
Comment on attachment 219237 [details] [diff] [review] Patch Cancelling review. Well, that's weird; it's not crashing in my Windows non-Cairo build. It ought to as far as I can tell. Oh well. I guess we're back to adding a check to nsPresShell::CreateRenderingContext.
Attachment #219237 -
Attachment is obsolete: true
Attachment #219237 -
Flags: review?(roc)
Assignee | ||
Comment 5•18 years ago
|
||
Sorry this took so long; I'm almost certain this will work, although someone should double-check. Mark?
Attachment #224355 -
Flags: review?(roc)
Hello Mark? :-)
Comment 8•18 years ago
|
||
Comment on attachment 224355 [details] [diff] [review] Patch Hello! I'll look at this first thing tomorrow morning.
Comment 9•18 years ago
|
||
Comment on attachment 224355 [details] [diff] [review] Patch Looks good to me. What's more, it even works!
Assignee | ||
Updated•18 years ago
|
Attachment #224355 -
Flags: superreview?(roc)
Attachment #224355 -
Flags: superreview?(roc)
Attachment #224355 -
Flags: superreview+
Attachment #224355 -
Flags: review?(roc)
Attachment #224355 -
Flags: review+
Assignee | ||
Comment 10•18 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•