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.

2DEB.jpg
Gmail as the default in Firefox 3

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:

  1. Type about:config in the address bar, without the quotation marks.
  2. In the filter field, enter gecko.handlerservice and find allowRegisterFromDifferentHost. Double-click it to change its value from false to true.
  3. Enter network.protocol-handler.external.mailto in the filter field and make sure it is set to true. Double-click the preference to change it if necessary.
2DEC.jpg
Filter for gecko.handlerservice
  1. 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")
  2. When Firefox asks whether you want to add Gmail as a handler for the mailto protocol, 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.