Closed Bug 1819777 Opened 2 years ago Closed 2 years ago

Printing selected message did nothing, console error: Uncaught (in promise) TypeError: messageBrowser.contentWindow.content is null

Categories

(Thunderbird :: Message Reader UI, defect, P3)

Thunderbird 111

Tracking

(thunderbird_esr102 unaffected, thunderbird112 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird112 --- fixed

People

(Reporter: thomas8, Assigned: darktrojan)

References

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

From my smoketesting of Beta 111.0b2 (64-bit) en-US, Win10 (intermittent, couldn't reproduce later, but still seeing the old error message in console):

STR

  • Selected a random message
  • Pressed Ctrl+P

Actual result

  • nothing
  • console error:
Uncaught (in promise) TypeError: messageBrowser.contentWindow.content is null
    <anonymous> chrome://messenger/content/about3Pane.js:3673
    doCommand chrome://messenger/content/mailCommon.js:545
    goDoCommand chrome://messenger/content/globalOverlay.js:100
    oncommand chrome://messenger/content/messenger.xhtml:1
about3Pane.js:3673:1

Expected result:

  • Print dialog for the selected message
Summary: Printing selected messages did nothing, console error: Uncaught (in promise) TypeError: messageBrowser.contentWindow.content is null → Printing selected message did nothing, console error: Uncaught (in promise) TypeError: messageBrowser.contentWindow.content is null
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1816294
Keywords: regression
Resolution: --- → DUPLICATE

This bug is reported against 111.0b2, and bug 1816294's patch is included in in 111.0b2.
Why would this bug be considered a duplicate of bug 1816294, do you expect Geoff to reopen 1816294?

Flags: needinfo?(mkmelin+mozilla)

Ah, didn't realize that. Maybe this one is still valid then.

Flags: needinfo?(mkmelin+mozilla)
Status: RESOLVED → REOPENED
No longer duplicate of bug: 1816294
Priority: P3 → P2
Resolution: DUPLICATE → ---

Does this still reproduce with nightly?

Flags: needinfo?(bugzilla2007)
Priority: P2 → P3
See Also: → 1822655

(In reply to Wayne Mery (:wsmwk) from comment #5)

Does this still reproduce with nightly?

Yes. Trying to print (Ctrl+P) on a running Daily 113.0a1 (2023-03-26) (64-bit), Win10, gmail-IMAP repeatedly failed with the error below. The TB session was running at least a day, probably across "Suspend to disk" and "Sleep".
However, still intermittent: Weird, after restarting TB, it works. Same message.

Uncaught (in promise) TypeError: can't access property "browsingContext", messageBrowser.contentWindow.content is null
    <anonymous> chrome://messenger/content/about3Pane.js:4452
    doCommand chrome://messenger/content/mailCommon.js:590
    goDoCommand chrome://messenger/content/globalOverlay.js:100
    oncommand chrome://messenger/content/messenger.xhtml:1
about3Pane.js:4452:1
Flags: needinfo?(bugzilla2007)
Assignee: nobody → geoff

I don't know why .content is sometimes unreliable, but it is.

Status: REOPENED → ASSIGNED
Component: Printing → Message Reader UI
Product: MailNews Core → Thunderbird
Target Milestone: --- → 113 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ae0cc090ff0d
Use getMessagePaneBrowser() instead of content when printing. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED

Comment on attachment 9325331 [details]
Bug 1819777 - Use getMessagePaneBrowser() instead of content when printing. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9325331 - Flags: approval-comm-beta+
Whiteboard: [Supernova] → [Supernova3p]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: