WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIWebContentHandlerRegistrar

IID:e6a75410-c93e-42bf-84ca-a5c3ec34a2f1
Inherits From:nsISupports

Applications wishing to use web content handlers need to implement this interface. Typically they will prompt the user to confirm adding an entry to the local list.

The component must have the contract id defined below so that nsNavigator can invoke it.

This interface is implemented by the following components:


Methods

void registerContentHandler ( DOMString mimeType , DOMString uri , DOMString title , nsIDOMWindow contentWindow ) void registerProtocolHandler ( DOMString protocol , DOMString uri , DOMString title , nsIDOMWindow contentWindow )

void registerContentHandler ( DOMString mimeType , DOMString uri , DOMString title , nsIDOMWindow contentWindow )

See documentation in nsIDOMClientInformation.idl The additional contentWindow param for both methods represents the dom content window from which the method has been called.

Arguments:
mimeType
uri
title
contentWindow

void registerProtocolHandler ( DOMString protocol , DOMString uri , DOMString title , nsIDOMWindow contentWindow )

Arguments:
protocol
uri
title
contentWindow

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com