Gecko.handlerService.schemes.(protocol).*.name

From MozillaZine Knowledge Base
Jump to navigationJump to search

Background

Firefox 3 allows web pages to register themselves as protocol handlers. This allows, for example, all links starting with mailto: to be sent to a webmail provider, or all links starting with webcal: to be sent to an online calendar site. The information on these registrations is kept in mimeTypes.rdf

A set of preferences exists to “seed” the list of registered content handlers. Information from these preferences is copied into mimeTypes.rdf every time the browser sees a new version of content handlers. This preference is an enumerated preference: all preferences whose names start with gecko.handlerService.schemes. are read to generate the list of handlers. (For example: gecko.handlerService.schemes.webcal.0.name and gecko.handlerService.schemes.webcal.0.uriTemplate describe one handler for the webcal: protocol.)

This preference determines the name for a content handler for a given protocol.

Possible values and their effects

A string containing a descriptive name for a content handler for the protocol specified in the preference name and the URI template specified in the corresponding gecko.handlerService.schemes.(protocol).*.uriTemplate preference.

By default, the following preference and value exist:

gecko.handlerService.schemes.webcal.0.name
WebCal Test Handler

First checked in

2007-09-06 by Dan Mosedale

Has an effect in

  • Mozilla Firefox (trunk builds after 2007-09-06)

Related bugs

Related preferences

See also

External links