3 ms·
Would be better solved with a user-agent implementation I think. Let local apps and webmails advertise support for mailto links, make the user-agent display a d
by emersion 6y ago
Would be better solved with a user-agent implementation I think. Let local apps and webmails advertise support for mailto links, make the user-agent display a dialog and let the user pick one.
We're almost there, the only issue is that there's no declarative way to advertise support for mailto links, webmails need to ask the user.
- deleted 6y ago[deleted]
- progval 6y ago> the only issue is that there's no declarative way to advertise support for mailto links, webmails need to ask the user. What's the alternative? You can't let any website register a handler for mailto without asking the user
- londons_explore 6y agoLet any website register a handler for mailto links. Get the OS/browser to show a list of registered handlers when a mailto link is clicked. Order the list by frequency of use so random websites you visited 5 years ago stay nicely below the actual one you want to use. Also maybe unregister or hide anything not visited for 30 days, so yo'd have to revisit the site to reregister it.
- Joker_vD 6y agoDoesn't Firefox do it already? I've just clicked on a mailto link and it asked me whether I'd like to go to gmail.com or to launch the external program... but then again, normally I don't ever click on mailto links, because I don't usually write e-mails anyway, and when I do, I just select and copy the e-mail address, then paste it into the "To:" field.
- tenryuu 6y agoFirefox has an option for the application (or website) to open a mailto link with. It's lacking Outlook OWA though. You can find in the preferences panel where all default 'open with' settings are
- progval 6y agoThen you need to prevent any website from registering a ton of handlers, even through redirection or links to other (sub)domains.
- browserface 6y agoYes there is. It's called "navigator.registerProtocolHandler"[0] [0]: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler https://developer.mozilla.org/en-US/docs/Web/API/Navigator/r...
- emersion 6y agoNot declarative, which means users would need to know they have to go to settings and enable it.
- untog 6y agoIt shows a prompt to the user when you run the code, they don't need to go near settings.
- browserface 6y agoNope that's now how it works. It does show a prompt. Also, not sure how "going to settings" is "not declarative"...? :) ;p xx