Closed Bug 2076335 Opened 12 hours ago Closed 5 hours ago

Printing multiple messages happens even if you cancel the print dialog

Categories

(Thunderbird :: General, defect)

defect

Tracking

(thunderbird_esr153 affected)

RESOLVED FIXED
159 Branch
Tracking Status
thunderbird_esr153 --- affected

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Select two messages, go to File > Print, cancel. Two messages are printed.

From about3Pane.js:

Cc["@mozilla.org/widget/printdialog-service;1"]
  .getService(Ci.nsIPrintDialogService)
  .showPrintDialog(window, false, ps);
if (ps.isCancelled) {
  return;
}

showPrintDialog is now async (bug 2035195), and we are not awaiting it, so we don't get the NS_ERROR_ABORT it throws, and isCancelled disappeared four years ago (bug 1766651).

Does the same thing happen for you with print to pdf? Cancel print to pdf is WFM on mac daily. Ditto for contacts, which is Bug 1336368 - Clicking "Cancel" on "Print Contacts" dialog prints contacts nevertheless

There is also a very old Bug 87474 - Only first print job is prompted for print or cancel

Target Milestone: --- → 159 Branch

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/f6e29f2f3923
Await showPrintDialog when printing multiple messages. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 hours ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: