Closed Bug 173532 Opened 23 years ago Closed 23 years ago

Can't print from mail compose

Categories

(MailNews Core :: Composition, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.2beta

People

(Reporter: akkzilla, Assigned: akkzilla)

Details

(Keywords: regression)

Attachments

(1 file)

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).
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 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+
Targeting 1.2beta since this is a regression.
Status: NEW → ASSIGNED
Keywords: regression
Target Milestone: --- → mozilla1.2beta
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 on attachment 102345 [details] [diff] [review] Revert to old code, minus FinishHTMLSource sr=sspitzer akkana says she's just reverting.
Attachment #102345 - Flags: superreview+
Attachment #102345 - Flags: approval+
Comment on attachment 102345 [details] [diff] [review] Revert to old code, minus FinishHTMLSource a=asa for checkin to 1.2beta (on behalf of drivers)
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
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: