Closed Bug 1689042 Opened 3 years ago Closed 3 years ago

Get rid of nsMsgPrintEngine.cpp, handle printing in msgPrintEngine.js

Categories

(MailNews Core :: Printing, task)

task

Tracking

(thunderbird_esr78 unaffected, thunderbird86 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
thunderbird_esr78 --- unaffected
thunderbird86 --- fixed

People

(Reporter: rnons, Assigned: rnons)

References

Details

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #1688248 +++

Currently we have both msgPrintEngine.js and nsMsgPrintEngine.cpp. nsMsgPrintEngine.cpp feels over complicated. By using printUtils.js, we should be able to get rid of nsMsgPrintEngine.cpp and handle printing in msgPrintEngine.js alone.

No longer depends on: 1688248
No longer regressed by: tb-fission
Keywords: regression
Severity: S1 → N/A
Priority: P1 → --

Will remove nsMsgPrintEngine.cpp when all printing cases work.

Assignee: nobody → remotenonsense
Status: NEW → ASSIGNED

Functionalities of nsMsgPrintEngine.cpp have been implemented in msgPrintEngine.js.
Depends on D103141.

I've noticed that printing happens even if you click Cancel in the print dialog. Not sure why, haven't investigated.

Apart from that, I'd like to use this new version to fix the address book/calendar printing as it'll be much easier. In fact I already have most of it complete. So don't wait for that to happen before landing.

(In reply to Geoff Lankow (:darktrojan) from comment #3)

I've noticed that printing happens even if you click Cancel in the print dialog. Not sure why, haven't investigated.

Apart from that, I'd like to use this new version to fix the address book/calendar printing as it'll be much easier. In fact I already have most of it complete. So don't wait for that to happen before landing.

Good catch, I pushed a fix.

Target Milestone: --- → 87 Branch
Keywords: leave-open

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9d9f5b8ec38c
Handle printing in msgPrintEngine.js alone. r=mkmelin
https://hg.mozilla.org/comm-central/rev/15d2e4d89641
Remove nsMsgPrintEngine.cpp. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Ping - bug 1689461 says that this bug needs to be uplifted first. Could you make the request for comm-beta with a risk assessment?

Flags: needinfo?(remotenonsense)

I'd take it. Without it you can't take bug 1689461 so that's a good reason.

Comment on attachment 9199443 [details]
Bug 1689042 - Handle printing in msgPrintEngine.js alone. r=mkmelin

[Triage Comment]
Accepting for beta per comment 7. This is for both patches.

Flags: needinfo?(remotenonsense)
Attachment #9199443 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: