Closed Bug 1742158 Opened 3 years ago Closed 3 years ago

Calendar printing not possible - maybe a regression by Bug 1724090

Categories

(Calendar :: Printing, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91+ verified, thunderbird95 verified)

VERIFIED FIXED
96 Branch
Tracking Status
thunderbird_esr91 + verified
thunderbird95 --- verified

People

(Reporter: Thunderbird_Mail_DE, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In Thunderbird 91.3.2 it isn't possible to print calendars. Finally clicking the print button in the print dialog throws a javascript error in print.js in line 254:

Uncaught (in promise) TypeError: cancelButton is null
    init chrome://global/content/print.js:254
    handleEvent chrome://global/content/print.js:1665
print.js:254:1

STR:
Open a calendar tab.
Open the print dialog → Forward to 2nd page of print dialog → Click "Print".
Nothing happens / error is in console

It seems the JS code still refers to the "Cancel" button, which has been changed to the "Back" button in 91.3.2

Blocks: tb91found
Component: Mail Window Front End → Printing
Keywords: regression
Product: Thunderbird → Calendar
Regressed by: 1724090

The provided patch states, that the buttons ID should be maintained: "We need to maintain the ID since M-C code refers to it."

IMHO we should restore the complete Cancel button and have the Back button as an additional 3rd button, if this would be possible in the dialog.

Reasons for this opinion:
*The confusion about IDs in JavaScript code because you are dependent on MC code
*It is confusing for users to not have the "Cancel" button in the dialog. Users must first come up with the idea of clicking Back and only then being able to click Cancel.

No longer blocks: tb91found
Assignee: nobody → geoff
Status: NEW → ASSIGNED

This feels ugly but Alex is probably right about keeping the cancel button.

Your patch seems to impelment the "Back" button in the first dialog, but it should only be in the 2nd / final dialog?

And yes, it looks really ugly :-(

I'm seeing this in using 95.0b4 on Fedora 34 Workstation, Gnome 40 desktop.

Error console output.

15:30:00.515 Uncaught (in promise) TypeError: cancelButton is null
init chrome://global/content/print.js:254
handleEvent chrome://global/content/print.js:1681
print.js:254:1

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4b787679e37c
Keep the cancel button as well as the back button when printing the calendar. r=mkmelin,aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

Comment on attachment 9251817 [details]
Bug 1742158 - Keep the cancel button as well as the back button when printing the calendar. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1724090
User impact if declined: can't print calendar at all
Testing completed (on c-c, etc.): landed today but somewhat urgent
Risk to taking this patch (and alternatives if risky): low, but then again I probably said that about the patch that caused this

Attachment #9251817 - Flags: approval-comm-esr91?
Attachment #9251817 - Flags: approval-comm-beta?

Verified in Daily

Status: RESOLVED → VERIFIED

Comment on attachment 9251817 [details]
Bug 1742158 - Keep the cancel button as well as the back button when printing the calendar. r=mkmelin

[Triage Comment]
Approved for beta

Attachment #9251817 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9251817 [details]
Bug 1742158 - Keep the cancel button as well as the back button when printing the calendar. r=mkmelin

[Triage Comment]
Approved for ers91

Attachment #9251817 - Flags: approval-comm-esr91? → approval-comm-esr91+

Verified in testing 91.4.0 and 95.0b5 on Windows 10 and Fedora 35 Workstation Linux.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: