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.

nsIBrowserDOMWindow

IID:f9691a49-7fb3-4b54-bb11-a4f2e0b6eddb
Inherits From:nsISupports

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.


Constants

Do whatever the default is based on application state, user preferences, and the value of the aContext parameter to openURI.
PRInt16 OPEN_DEFAULTWINDOW = 0
Open in the "current window". If aOpener is provided, this should be the top window in aOpener's window hierarchy, but exact behavior is application-dependent. If aOpener is not provided, it's up to the application to decide what constitutes a "current window".
PRInt16 OPEN_CURRENTWINDOW = 1
Open in a new window.
PRInt16 OPEN_NEWWINDOW = 2
Open in a new content tab in the toplevel browser window corresponding to this nsIBrowserDOMWindow.
PRInt16 OPEN_NEWTAB = 3
External link (load request from another application, xremote, etc).
PRInt16 OPEN_EXTERNAL = 1
Internal open new window
PRInt16 OPEN_NEW = 2

Methods

PRBool isTabContentWindow ( nsIDOMWindow window ) nsIDOMWindow openURI ( nsIURI URI , nsIDOMWindow opener , PRInt16 where , PRInt16 context )

PRBool isTabContentWindow ( nsIDOMWindow window )

Arguments:
window: the window to test.
Returns:
whether the window is the main content window for any currently open tab in this toplevel browser window.

nsIDOMWindow openURI ( nsIURI URI , nsIDOMWindow opener , PRInt16 where , PRInt16 context )

Load a URI

Arguments:
URI: the URI to open. null is allowed. If null is passed in, no load will be done, though the window the load would have happened in will be returned.
opener: window requesting the open (can be null).
where: see possible values described above.
context: the context in which the URI is being opened. This is used only when where == OPEN_DEFAULTWINDOW.
Returns:
the window into which the URI was opened.

References

This interface is the type of the following properties:

nsIDOMChromeWindow.browserDOMWindow

Reference documentation is generated from Mozilla's source.