Closed
Bug 173532
Opened 23 years ago
Closed 23 years ago
Can't print from mail compose
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.2beta
People
(Reporter: akkzilla, Assigned: akkzilla)
Details
(Keywords: regression)
Attachments
(1 file)
|
679 bytes,
patch
|
Brade
:
review+
sspitzer
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
I was misinformed about the correct way to print in the new editorshell-less
world, and I broke printing for the mail compose window. Charley is working on
implementing printing, but in the meantime we should just use the old
editorshell methods (patch to follow).
| Assignee | ||
Comment 1•23 years ago
|
||
FinishHTMLSource(), which was in the old code, no longer exists. Charley, is
there a replacement, or is it kosher not to call it? Otherwise, this is the
same as the code that was there before, and it does bring up a print dialog.
Seeking review ...
Looking at what editorshell does, I thought this would do the trick:
var contentViewer =
gMsgCompose.editor.document.getElementById("content-frame").docShell.contentViewer;
contentViewer.QueryInterface(Components.interfaces.nsIWebBrowserPrint);
contentViewer.print(null, null);
but it doesn't work
("gMsgCompose.editor.document.getElementById("content-frame") has no
properties"). Maybe that's a start on rewriting it ...
Comment 2•23 years ago
|
||
Comment on attachment 102345 [details] [diff] [review]
Revert to old code, minus FinishHTMLSource
r=brade
if you wanted you could just do this:
try {
gMsgCompose.editorShell.Print();
} catch(ex) {dump...}
Attachment #102345 -
Flags: review+
| Assignee | ||
Comment 3•23 years ago
|
||
Targeting 1.2beta since this is a regression.
| Assignee | ||
Comment 4•23 years ago
|
||
Seth, can I get an sr? This just restores what was there before my patch, minus
one line for a call that's been removed from the editor shell and is no longer
needed.
Comment 5•23 years ago
|
||
Comment on attachment 102345 [details] [diff] [review]
Revert to old code, minus FinishHTMLSource
sr=sspitzer
akkana says she's just reverting.
Attachment #102345 -
Flags: superreview+
Updated•23 years ago
|
Attachment #102345 -
Flags: approval+
Comment 6•23 years ago
|
||
Comment on attachment 102345 [details] [diff] [review]
Revert to old code, minus FinishHTMLSource
a=asa for checkin to 1.2beta (on behalf of drivers)
| Assignee | ||
Comment 7•23 years ago
|
||
Fixed!
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Using trunk build 20021029 onlinux, 20021028 on winxp and 20021015 on Mac OSX
printing mail messages work. Verified
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•