Interface nsILoadURIDelegateType

The nsILoadURIDelegate interface. Used for delegating URI loads to GeckoView's application, e.g., Custom Tabs or Progressive Web Apps.

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

  • Delegates page load error handling. This may be called for either top-level loads or subframes.

    Parameters

    • aURI: nsIURI

      The URI that failed to load.

    • aError: number

      The error code.

    • aErrorModule: number

      The error module code. Returns an error page URL to load, or null to show the default error page. No error page is shown at all if an error is thrown.

    Returns nsIURI

Generated using TypeDoc