Linux Mac OSX Windows
 The C++ source has access to the browser script source through
 nsIBrowserWindow. It is intended to be attached to the chrome
 DOMWindow of a browser window. A DOMWindow that does not happen to
 be a browser chrome window will simply have no access to any such
 interface.
[scriptable, uuid(af25c296-aaec-4f7f-8885-dd37a1cc0a13)]
interface nsIBrowserDOMWindow : nsISupports

Constants

 values for openURI's aWhere parameter
const short OPEN_DEFAULTWINDOW = 0

        
const short OPEN_CURRENTWINDOW = 1

        
const short OPEN_NEWWINDOW = 2

        
const short OPEN_NEWTAB = 3
 values for openURI's aContext parameter
const short OPEN_EXTERNAL = 1

        
const short OPEN_NEW = 2

Methods

 @param  aWindow the window to test.
 @return whether the window is the main content window for any
         currently open tab.
boolean isTabContentWindow(in nsIDOMWindow aWindow)
 Load a URI
 @param aURI the URI to open. null is allowed; it means about:blank.
 @param aWhere see possible values described above.
 @param aOpener window requesting the open (can be null).
 @param aContext the context in which the URI is being opened. This
                 is used only when aWhere == OPEN_DEFAULTWINDOW.
 @return the window into which the URI was opened.
nsIDOMWindow openURI(in nsIURI aURI, in nsIDOMWindow aOpener, in short aWhere, in short aContext)