The chrome object associated with the browser instance. The embedder
must create one chrome object for each browser object
that is instantiated. The embedder must associate the two by setting
this property to point to the chrome object before creating the browser
window via the browser's nsIBaseWindow
interface.
The chrome may optionally implement nsIInterfaceRequestor
,
nsIWebBrowserChromeFocus
,
nsIContextMenuListener
and
nsITooltipListener
to receive additional notifications
from the browser object.
The chrome object may optionally implement
nsIWebProgressListener
to register a progress listener
object. If the implementation does this, it must also implement
nsIWeakReference
.
The implementation should not refcount the supplied chrome
object; it should assume that a non nullptr
value is
always valid. The embedder must explicitly set this value back
to nullptr if the chrome object is destroyed before the browser
object.
Readonly
contentDOMWindowThe top-level DOM window. The embedder may walk the entire DOM starting from this value.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Generated using TypeDoc
The nsIWebBrowser interface is implemented by web browser objects. Embedders use this interface during initialisation to associate the new web browser instance with the embedders chrome and to register any listeners. The interface may also be used at runtime to obtain the content DOM window and from that the rest of the DOM.