FireFox Me

Your daily dose of Mozilla FireFox 3 !

  • Home
  • Features
  • Add-ons
  • Download
  • Guides
  • News
  • Promote

Web application protocol handlers

Posted by admin  Published in FireFox Me


web-application

Web application protocol handlers are a new Firefox 3 feature that gives more power to web applications. When you click on a link with a specific protocol, Firefox can now send that link data to a specified web application, if that web application has added support for this feature. For example, “mailto:” links can now be handled by a web application such as Yahoo! mail instead of by the default mail client on your desktop. Other currently supported protocols include “webcal:”, “tel:”, and “fax:”.

Developers who are interested in adding protocol support to web applications should read the Web-based protocol handlers article at the Mozilla Developer Center.

Web protocol handlers are a new Firefox 3 feature that gives more power to RIA web applications. Basically, when a user clicks on a link with specific protocol, Firefox can send an HTTP(S) request with the link data to a web application. An easy example is a mailto: link:


<a href="mailto:webmaster@example.com">Web Master</a>

Normally, if a user clicks this link, Firefox (or other browser) will open the default mail application on the user’s machine and start composing an email message. With so many web-based email applications in use today, it only seems natural that some people would want to use a web-based email application to compose the message.

With web protocol handlers, the web application can register the specific protocol it wants to handle. Firefox will then prompt the user to choose which of the registered applications (web or desktop) it should use to handle the action. Any protocol, real or imaginary, can be used - mailto: is only one example, webcal:, tel: and fax: are others. In the case of the mailto: example, the web-based email application could parse the data passed to it from Firefox to get the parameters of the protocol, perform a sign-on (if needed) and display its “compose” UI.

Firefox 3 will ship with some packaged web protocol handlers. For those developers interested in adding protocol support to their web applications, we have an MDC article explaining the details of setting up and using web protocol handlers. Also checkout the compliance test page we use to test the feature. During the process of getting the packaged handlers into Firefox 3, we ran into some common implementation misconceptions:

  • Web protocol handlers are not just for mailto:! The system is designed for any protocol.
  • Web protocol handlers have no idea about the protocol details. For example, the system does not know that mailto: support to or subject parameters. The system just sends the entire HREF of the link to the registered handler. Be prepared to do the parsing yourself.

Go forth and make web applications rock!

Download FireFox

Firefox 3

FireFox3 Field Guide

  • Add-on manager
  • Bookmarks
  • Cascading Style Sheets (CSS)
  • Color profile support
  • Download manager
  • Font and text rendering
  • Full page zoom
  • History Tab
  • HTML Canvas
  • Location bar UTF-8 support
  • Malware protection
  • Microformats API
  • Offline web application support
  • Password manager
  • Performance improvements
  • Phishing protection
  • Plugins
  • Site Identification button
  • Smart Location Bar
  • Tabs
  • Themes
  • Video and audio feeds
  • Vista parental controls support
  • Web application protocol handlers
  • Field Guide: French Version

Search

© 2007 FireFox Me
Valid XHTML | Valid CSS 3.0
Powered by Wordpress
Contact: webmaster[[at]]firefoxme[dot]com