Interface nsIToolkitChromeRegistryType

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

  • Content should only be allowed to load chrome JS from certain packages. This method reflects the contentaccessible flag on packages. Do not pass non-chrome URIs to this method.

    Parameters

    • url: nsIURI

    Returns boolean

  • Installable skin XBL is not always granted the same privileges as other chrome. This asks the chrome registry whether scripts are allowed to be run for a particular chrome URI. Do not pass non-chrome URIs to this method.

    Parameters

    • url: nsIURI

    Returns boolean

  • Returns true if the passed chrome URL is allowed to be loaded in a remote process. This reflects the remoteenabled flag on packages. Do not pass non-chrome URIs to this method.

    Parameters

    • url: nsIURI

    Returns boolean

  • Resolve a chrome URL to an loadable URI using the information in the registry. Does not modify aChromeURL.

    Chrome URLs are allowed to be specified in "shorthand", leaving the "file" portion off. In that case, the URL is expanded to:

    chrome://package/provider/package.ext

    where "ext" is:

    "xul" for a "content" package, "css" for a "skin" package, and "dtd" for a "locale" package.

    Parameters

    • aChromeURL: nsIURI

      the URL that is to be converted.

    Returns nsIURI

  • Get a list of locales available for the specified package.

    Parameters

    • aPackage: string

    Returns nsIUTF8StringEnumerator

  • Returns true if the passed chrome URL must be loaded in a remote process. This reflects the remoterequired flag on packages. Do not pass non-chrome URIs to this method.

    Parameters

    • url: nsIURI

    Returns boolean

Generated using TypeDoc