Closed Bug 1753887 Opened 3 years ago Closed 3 years ago

macOS application support to handle mid: URL scheme

Categories

(Thunderbird :: OS Integration, defect)

Thunderbird 91
Unspecified
macOS
defect

Tracking

(thunderbird_esr91 fixed, thunderbird98 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
thunderbird_esr91 --- fixed
thunderbird98 --- fixed

People

(Reporter: bugzilla, Assigned: rnons)

Details

Attachments

(1 file)

Steps to reproduce:

Try to open a mid: URL in Thunderbird, i.e., executed open -a /Applications/Thunderbird.app mid:<message-id>.

Actual results:

Thunderbird opened but did not display the correct message.

Expected results:

Now that Thunderbird has support for the mid: URL scheme (bug 264270), it would be great if the macOS Thunderbird application can register with the operating system as being able to handle that URL scheme. That would allow a mid: URL to be opened from elsewhere in macOS, and Thunderbird open to display the correct email message.

/Applications/Thunderbird.app/Contents/MacOS/thunderbird mid:<message-id> seems to work for me.

(In reply to Ping Chen (:rnons) from comment #1)

/Applications/Thunderbird.app/Contents/MacOS/thunderbird mid:<message-id> seems to work for me.

Yes, that works fine. However, Thunderbird does not tell macOS that it can handle the mid: URL scheme, and so neither open -a /Applications/Thunderbird.app mid:<message-id>, nor open mid:<message-id>, nor clicking a mid:<message-id> from, say, where I put it in my TODO application, will open the correct message in Thunderbird.

Actually, I'm changing this from an enhancement request to a defect: I see that Thunderbird is setting itself as the default handler for the mid protocol (see nsMacShellService.cpp). Indeed, when I click a mid:<message-id> link or execute open mid:<message-id>, Thunderbird will open.

However, it is failing to correctly handle the open URL requests that it receives from macOS: it does not open the specified message.

Type: enhancement → defect
OS: Unspecified → macOS
Version: unspecified → Thunderbird 91
Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 99 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c1f09dc7c6c2
Fix opening mid url on macOS by dropping the -url flag. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9263688 [details]
Bug 1753887 - Fix opening mid url on macOS by dropping the -url flag. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: Open mid: url from browser or open cli doesn't work on macOS .
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

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

Comment on attachment 9263688 [details]
Bug 1753887 - Fix opening mid url on macOS by dropping the -url flag. r=mkmelin

[Triage Comment]
Approved for beta

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

Comment on attachment 9263688 [details]
Bug 1753887 - Fix opening mid url on macOS by dropping the -url flag. r=mkmelin

[Triage Comment]
Approved for esr91

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

Attachment

General

Created:
Updated:
Size: