Closed Bug 1833764 Opened 1 year ago Closed 1 year ago

Printing fails (can't redefine non-configurable property "MailE10SUtils")

Categories

(Thunderbird :: General, defect)

Thunderbird 114
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird114 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird114 --- fixed

People

(Reporter: wsmwk, Assigned: mkmelin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

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

selected message, ctrl+P on Mac

An error occurred executing the cmd_print command: SyntaxError: redeclaration of let TabDialogBox globalOverlay.js:103:13
goDoCommand chrome://messenger/content/globalOverlay.js:103
oncommand chrome://messenger/content/messenger.xhtml:1

Also fails on address book contact, but perhaps a different bug

ncaught (in promise) SyntaxError: redeclaration of let TabDialogBox
<anonymous> chrome://messenger/content/printUtils.js:1
get resource://gre/modules/XPCOMUtils.sys.mjs:71
_printURL chrome://messenger/content/addressbook/aboutAddressBook.js:4370
_printCards chrome://messenger/content/addressbook/aboutAddressBook.js:4365

With Daily 115.0a1 (2023-05-17) on Mac

select message, print

Uncaught (in promise) SyntaxError: redeclaration of let TabDialogBox
<anonymous> chrome://messenger/content/printUtils.js:1
get resource://gre/modules/XPCOMUtils.sys.mjs:71
<anonymous> chrome://messenger/content/about3Pane.js:5433
doCommand chrome://messenger/content/mailCommon.js:674
goDoCommand chrome://messenger/content/globalOverlay.js:100
oncommand chrome://messenger/content/messenger.xhtml:1

Summary: Printing fails (printBrowser.currentURI is null). → Printing fails

Yeah I see that too actually. Strange.

Summary: Printing fails → Printing fails (redeclaration of let TabDialogBox)
Assignee: nobody → mkmelin+mozilla

The original error message is confusing. The problem seems to have been due to "MailE10SUtils" already being lazily defined.

114.0b3 Windows 11 64 bit us english
error console with CTRL-P No print dialog appears (in 114..0b2, window appeared and spun)

20:47:33.778 tb.account.size_on_disk - Attempted to set the scalar to an incompatible value. 2
20:48:17.315
Unknown property ‘-moz-border-radius’. Declaration dropped. codemirror.css:244:22
20:48:29.023 Error in parsing value for ‘-webkit-text-size-adjust’. Declaration dropped. 2 Inbox
20:48:29.023 Unknown property ‘mso-table-lspace’. Declaration dropped. 2 Inbox
20:48:29.023 Unknown property ‘mso-table-rspace’. Declaration dropped. 2 Inbox
20:48:29.023 Unknown property ‘mso-table-lspace’. Declaration dropped. 2 Inbox
20:48:29.023 Unknown property ‘mso-table-rspace’. Declaration dropped. 2 Inbox
20:48:29.023 Unknown property ‘mso-table-lspace’. Declaration dropped. 2 Inbox
20:48:29.023 Unknown property ‘mso-table-rspace’. Declaration dropped. 2 Inbox
20:48:30.655
An error occurred executing the cmd_print command: TypeError: can't redefine non-configurable property "MailE10SUtils" globalOverlay.js:103:13
20:49:14.581 1684374554581 places TRACE FrecencyRecalculator :: Recalculate 50 frecency values
20:49:26.309
An error occurred executing the cmd_print command: SyntaxError: redeclaration of let TabDialogBox 4 globalOverlay.js:103:13
20:49:49.777 Error in parsing value for ‘-webkit-text-size-adjust’. Declaration dropped. 2 Inbox
20:49:49.777 Unknown property ‘mso-table-lspace’. Declaration dropped. 2 Inbox
20:49:49.777 Unknown property ‘mso-table-rspace’. Declaration dropped. 2 Inbox
20:49:49.777 Unknown property ‘mso-table-lspace’. Declaration dropped. 2 Inbox
20:49:49.777 Unknown property ‘mso-table-rspace’. Declaration dropped. 2 Inbox
20:49:49.777 Unknown property ‘mso-table-lspace’. Declaration dropped. 2 Inbox
20:49:49.777 Unknown property ‘mso-table-rspace’. Declaration dropped. 2 Inbox
20:49:51.581
An error occurred executing the cmd_print command: TypeError: can't redefine non-configurable property "MailE10SUtils" globalOverlay.js:103:13

Status: NEW → ASSIGNED
Summary: Printing fails (redeclaration of let TabDialogBox) → Printing fails (can't redefine non-configurable property "MailE10SUtils")

same here on macOS 13.3.1, worked fine on b2, no go b3 as reported above - no print dialogue from any command option

I see the same problem and error codes in 114b3 on Fedora 38 Linux, additionally when selecting print from menu in message window I got this in console:

printUtils.js:1:1

Uncaught

(in promise) SyntaxError: redeclaration of let TabDialogBox
<anonymous> chrome://messenger/content/printUtils.js:1
get resource://gre/modules/XPCOMUtils.sys.mjs:71
<anonymous> chrome://messenger/content/about3Pane.js:5377
doCommand chrome://messenger/content/mailCommon.js:647
onMailContextMenuCommand chrome://messenger/content/mailContext.js:383
init chrome://messenger/content/mailContext.js:120

If it helps, when I (Leap 15.4) click reply or forward on a message, I can print the message in the compose window.

Duplicate of this bug: 1834336
Duplicate of this bug: 1834346
Duplicate of this bug: 1834364
Regressed by: 1831224
Target Milestone: --- → 115 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/4398c3b8de05
Fix printing and add test we can open print preview. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Duplicate of this bug: 1834708

Comment on attachment 9334757 [details]
Bug 1833764 - Fix printing and add test we can open print preview. r=#thunderbird-reviewers

[Approval Request Comment]
Make printing work again.

Attachment #9334757 - Flags: approval-comm-beta?

Comment on attachment 9334757 [details]
Bug 1833764 - Fix printing and add test we can open print preview. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta.
Thanks for adding the test.

Attachment #9334757 - Flags: approval-comm-beta? → approval-comm-beta+
Duplicate of this bug: 1834778
See Also: → 1843628
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: