Readonly
tabThe number browser tabs in the window. This number currently includes lazy tabs, though for most uses it probably should not.
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.
Create the content window for the given URI.
the window into which the URI would have been opened.
the URI to be opened in the window (can be null).
info about the creation (can be null).
see possible values described above.
flags which control the behavior of the load. The OPEN_EXTERNAL/OPEN_NEW flag is only used when aWhere == OPEN_DEFAULTWINDOW.
the principal that would trigger the potential load of aURI.
the CSP to use (if any) for the new window.
As above, but return the nsFrameLoaderOwner for the new window. Value is returned as Element, QI'd back to nsFrameLoaderOwner as needed.
Additional Parameters:
The frame element for the newly opened window.
The name to give the window opened in the new tab.
Load a URI.
the window into which the URI was opened.
the URI to open. null is not allowed. To create the window without loading the URI, use createContentWindow instead.
info about the open (can be null).
see possible values described above.
flags which control the behavior of the load. The OPEN_EXTERNAL/OPEN_NEW flag is only used when aWhere == OPEN_DEFAULTWINDOW.
the principal that triggered the load of aURI.
the CSP to be applied to the new load.
As above, but return the nsFrameLoaderOwner for the new window. Value is returned as Element, QI'd back to nsFrameLoaderOwner as needed.
Additional Parameters:
The frame element for the newly opened window. // XXXbz is this the right API? // See bug 537428
The name to give the window opened in the new tab.
Generated using TypeDoc
The C++ source has access to the browser script source through nsIBrowserDOMWindow. It is intended to be attached to the chrome DOMWindow of a toplevel browser window (a XUL window). A DOMWindow that does not happen to be a browser chrome window will simply have no access to any such interface.