Closed Bug 1821241 Opened 1 year ago Closed 1 year ago

`Copy email address` from context menu of mailto: link in message body fails with error

Categories

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

Thunderbird 111

Tracking

(thunderbird_esr102 unaffected, thunderbird113 wontfix, thunderbird114 fixed)

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

People

(Reporter: wsmwk, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(2 files)

Select a message with a mailto address.
Right+click and pick copy email address

Result: nothing copied, and the following in error console...

Uncaught
Exception { name: "NS_ERROR_FAILURE", message: "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMessenger.msgHdrFromURI]", result: 2147500037, filename: "chrome://messenger/content/mailContext.js", lineNumber: 252, columnNumber: 0, data: null, stack: "fillMailContextMenu@chrome://messenger/content/mailContext.js:252:23\ninit/<@chrome://messenger/content/mailContext.js:113:14\nopenContextMenu@chrome://messenger/content/mailContext.js:59:9\nreceiveMessage@resource:///actors/ContextMenuParent.sys.mjs:21:38\n", location: XPCWrappedNative_NoHelper }
mailContext.js:252
22:13:22.597
Uncaught TypeError: topChromeWindow.getEmail is not a function
onMailContextMenuCommand chrome://messenger/content/mailContext.js:420
init chrome://messenger/content/mailContext.js:117

Summary: context menu `copy email address` from message fails → context menu (for message body) `copy email address` from message fails
Duplicate of this bug: 1822525

Confirming for Daily 113.0a1 (2023-03-26) (64-bit), Win10.

Message must have a linkified email address like <a href="mailto:me@example.com">me@example.com</a>.
Non-linkified email addresses are shown as plain text.

Priority: -- → P3
Summary: context menu (for message body) `copy email address` from message fails → `Copy email address` from context menu of <a mailto: ...> link in message body fails with error
Summary: `Copy email address` from context menu of <a mailto: ...> link in message body fails with error → `Copy email address` from context menu of mailto: link in message body fails with error

Here's a minimal test message with a mailto: link.

Comment on attachment 9325170 [details]
testcase1.eml: Message with mailto: link

.

Attachment #9325170 - Attachment mime type: message/rfc822 → text/plain
Duplicate of this bug: 1825315

Does the error message in comment 0 help?

Flags: needinfo?(geoff)
Whiteboard: [Supernova] → [Supernova3p]

Probably, but this is no more important than any other bug, so it can sit in the queue like the rest of them.

Flags: needinfo?(geoff)
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Target Milestone: --- → 115 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/9ca7923e545d
Fix context menu items for handling mailto: links. r=Ikey

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Attachment #9332352 - Flags: approval-comm-beta?

Comment on attachment 9332352 [details]
Bug 1821241 - Fix context menu items for handling mailto: links. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9332352 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: