In Firefox 3, web services can be set as the default handlers for protocols you choose. The browser’s built-in options for email links include Yahoo, but you can add Gmail to the available webmail services.
Firefox 3 RC1 can use a web-based email service to open mailto: links. Previously, you could work around this limitation with the status-bar notifier or Google Talk, which acted like a desktop email program.
To add Gmail to Firefox’s webmail options and use it to handle email links, follow these steps:
- Type
about:configin the address bar, without the quotation marks. - In the filter field, enter
gecko.handlerserviceand findallowRegisterFromDifferentHost. Double-click it to change its value fromfalsetotrue. - Enter
network.protocol-handler.external.mailtoin the filter field and make sure it is set totrue. Double-click the preference to change it if necessary.
- Copy this entire line into the address bar without any spaces:
javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail") - When Firefox asks whether you want to add Gmail as a handler for the
mailtoprotocol, confirm. That’s it.
The next time you click an email link, Firefox will show a menu where you can choose how to handle that type of link. You can also tell it to always use Gmail, so it won’t ask again. From then on, clicking an email link will open the appropriate window in Gmail.
First seen on Lifehacker.