Open Bug 1643922 Opened 4 years ago Updated 3 years ago

Support Outlook.com as one of default handlers for mailto: URIs

Categories

(Firefox :: File Handling, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: filip.stamcar, Unassigned)

Details

Currently, Firefox only supports Gmail, Yahoo! Mail as default mailto: handlers. It should also be possible to use Outlook.com without use of additional addons.

In the past, Outlook.com/Outlook Web App/Hotmail didn't fully support mailto: scheme so it wasn't really possible to support it directly. However, it recently (maybe last year?) also started supporting so it should be possible to support it as one of default options. At least from my tests, it supports all most common mailto: parameters but this should probably be additionally verified.

There are two public Outlook.com instances:

(There is also outlook.office365.com but it is same as outlook.office.com so there isn't any need to support it separetly.)

They should be supported as one of default mailto: handlers, maybe with names "Outlook Personal" and "Outlook Business."

Currently, workaround to use them as mailto: handlers without additional addons is to run:

navigator.registerProtocolHandler('mailto', 'https://outlook.live.com/mail/deeplink/compose?to=%s', 'Outlook')

In JS console when Outlook is opened to manually register handler. Same for business variant except different handler URL.


From quick search through source code, it seems that current handlers (Gmail and Yahoo! Mail) are defined in browser/locales/en-US/chrome/browser-region/region.properties and mobile/locales/en-US/chrome/region.properties, and tested in uriloader/exthandler/tests/unit/test_handlerService_store.js and python/mozbuild/mozbuild/test/action/data/valid-zh-CN/region.properties.

Is this right? If so, I can submit a patch to add Outlook handlers there.

It looks like Outlook has added the registerProtocolHandler call, so the workaround here is not needed. (Now I just need to work out how to block the prompt.)

(In reply to Martin Thomson [:mt:] from comment #1)

It looks like Outlook has added the registerProtocolHandler call, so the workaround here is not needed. (Now I just need to work out how to block the prompt.)

That's bug 668577 that is not yet fixed, Firefox should remember your choice even if negative.
Fwiw, Outlook should not ask continuously to do that registration, because that may be annoying to the user. But if you are interested in registering the handle and even after doing so it keeps asking, there may be something wrong. In that case I'd suggest to try removing your current handler from about:preferences (Applications pane, search for mailto) and then registering it again. Maybe the url changed and thus what you registered is not the most recent handler url.
Please let us know if it keeps asking even after you register the handler and eventually unregistering and replacing the old one.

Flags: needinfo?(mt)

Once the handler is registered, the infobar no longer appears.

Flags: needinfo?(mt)
You need to log in before you can comment on or make changes to this bug.