The external protocol service is used for finding and launching platform specific applications for particular protocols.
You can ask the external protocol service if it has an external handler for a given protocol scheme. And you can ask it to load the url using the default handler.
This interface is implemented by the following components:
Check whether a handler for a specific protocol exists.
- protocolScheme: The scheme from a url: http, ftp, mailto, etc.
- true if we have a handler and false otherwise.
Check whether a handler for a specific protocol is "exposed" as a visible feature of the current application.
An exposed protocol handler is one that can be used in all contexts. A non-exposed protocol handler is one that can only be used internally by the application. For example, a non-exposed protocol would not be loaded by the application in response to a link click or a X-remote openURL command. Instead, it would be deferred to the system's external protocol handler.
void loadUrl ( nsIURI URL )
Used to load a url via an external protocol handler (if one exists)
- URL: The url to load
Reference documentation is generated from Mozilla's source.