Closed Bug 1523109 Opened 6 years ago Closed 6 years ago

Port bug 1522694: Add an API to get whether this install is the OS default install

Categories

(MailNews Core :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 67.0

People

(Reporter: jorgk-bmo, Assigned: jorgk-bmo)

Details

Attachments

(1 file, 1 obsolete file)

Looks like toolkit tests will soon use nsIToolkitShellService.isDefaultApplication declared here:
https://hg.mozilla.org/mozilla-central/rev/98859fd44b41#l12.21

If we don't provide it, those tests will fail.

Looks like the changeset would be easy to port since we already have ns*ShellService.cpp here:
https://searchfox.org/comm-central/source/mail/components/shell

Maybe bug 1521902 is also worth a look in this context. I haven't looked, FRG mentioned it on IRC.

This compile on Windows. I left the aStartupCheck parameter since it's uses a few times.

This should compile in the other platforms as well, Magnus can you check on Linux.

Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Attachment #9039429 - Flags: review?(mkmelin+mozilla)

Changed variable name, sorry about the noise.

Attachment #9039429 - Attachment is obsolete: true
Attachment #9039429 - Flags: review?(mkmelin+mozilla)
Attachment #9039430 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9039430 [details] [diff] [review] 1523109-isDefaultApplication.patch (v1b) Review of attachment 9039430 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. r=mkmelin ::: mail/components/shell/nsToolkitShellService.h @@ +14,5 @@ > + uint16_t aApps, > + bool* aIsDefaultClient) = 0; > + > + NS_IMETHODIMP IsDefaultApplication(bool* aIsDefaultClient) { > + // Only care about the http(s) protocol. This only matters on Windows. This looks like the case for Firefox. I assume we're after the mailto protocol
Attachment #9039430 - Flags: review?(mkmelin+mozilla) → review+

Right, cut/paste error, will fix before landing.

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/4e1c6a32b962
Port bug 1522694: Add support for nsIToolkitShellService.isDefaultApplication(). r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 67.0
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: