Interface nsPIWindowWatcherType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • A window has been created. Add it to our list.

    Parameters

    • aWindow: mozIDOMWindowProxy

      the window to add

    • aChrome: nsIWebBrowserChrome

      the corresponding chrome window. The DOM window and chrome will be mapped together, and the corresponding chrome can be retrieved using the (not private) method getChromeForWindow. If null, any extant mapping will be cleared.

    Returns void

  • Like the public interface's open(), but can handle openDialog-style arguments and calls which shouldn't result in us navigating the window.

    Returns

    the new window

    Note

    This method may examine the JS context stack for purposes of determining the security context to use for the search for a given window named aName.

    Note

    This method should try to set the default charset for the new window to the default charset of the document in the calling window (which is determined based on the JS stack and the value of aParent). This is not guaranteed, however.

    Parameters

    • aParent: mozIDOMWindowProxy

      parent window, if any. Null if no parent. If it is impossible to get to an nsIWebBrowserChrome from aParent, this method will effectively act as if aParent were null.

    • aUrl: string
    • aName: string

      window name from JS window.open. can be null. If a window with this name already exists, the openWindow call may just load aUrl in it (if aUrl is not null) and return it.

    • aFeatures: string

      window features from JS window.open. can be null.

    • aCalledFromScript: boolean

      true if we were called from script.

    • aDialog: boolean

      use dialog defaults (see nsGlobalWindowOuter::OpenInternal)

    • aNavigate: boolean

      true if we should navigate the new window to the specified URL.

    • aArgs: nsISupports

      Window argument

    • aIsPopupSpam: boolean

      true if the window is a popup spam window; used for popup blocker internals.

    • aForceNoOpener: boolean

      If true, force noopener behavior. This means not looking for existing windows with the given name, not setting an opener on the newly opened window, and returning null from this method.

    • aForceNoReferrer: boolean
    • aPrintKind: nsPIWindowWatcher_PrintKind
    • aLoadState: nsDocShellLoadStatePtr

      if aNavigate is true, this allows the caller to pass in an nsIDocShellLoadState to use for the navigation. Callers can pass in null if they want the windowwatcher to just construct a loadinfo itself. If aNavigate is false, this argument is ignored.

    Returns BrowsingContext

  • Opens a new window so that the window that aOpeningTab belongs to is set as the parent window. The newly opened window will also inherit load context information from aOpeningTab.

    Returns

    the nsIRemoteTab of the initial browser for the newly opened window.

    Parameters

    • aOpeningTab: nsIRemoteTab

      The nsIRemoteTab that is requesting the new window be opened.

    • aFeatures: WindowFeaturesRef

      Window features if called with window.open or similar.

    • aCalledFromJS: boolean

      True if called via window.open or similar.

    • aOpenerFullZoom: number

      The current zoom multiplier for the opener tab. This is then applied to the newly opened window.

    • aOpenWindowInfo: nsIOpenWindowInfo

      Information used to create the initial content browser in the new window.

    Returns nsIRemoteTab

  • A window has been closed. Remove it from our list.

    Parameters

    • aWindow: mozIDOMWindowProxy

      the window to remove

    Returns void

Generated using TypeDoc