Interface nsIEnterprisePoliciesType

Hierarchy

Properties

status: number

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

  • Uses install_sources to determine if an addon can be installed from the given URI.

    Returns

    A boolean - true of the addon may be installed.

    Parameters

    • uri: nsIURI

    Returns bool

  • Get the active policies that have been successfully parsed.

    Returns

    A JS object that contains the policies names and their corresponding parameters.

    Returns any

  • Get the policy for a given extensionID (if available)

    Returns

    A JS object that contains the storage or null if unavailable.

    Parameters

    • extensionID: string

    Returns any

  • Retrieves the ExtensionSettings policy for the given extensionID.

    If there is no policy for the extension, it returns the global policy.

    If there is no global policy, it returns null.

    Returns

    A JS object that settings or null if unavailable.

    Parameters

    • extensionID: string

    Returns any

  • Get the contents of the support menu (if applicable)

    Returns

    A JS object that contains the url and label or null.

    Returns any

  • Parameters

    • feature: string

    Returns bool

  • Uses ExemptDomainFileTypePairsFromFileTypeDownloadWarnings to determine if a given file extension is exempted from executable behavior and warnings based on the URL.

    Returns

    A boolean - true if the extension should be exempt.

    Parameters

    • url: string
    • extension: string

    Returns bool

  • Uses the allowlist, blocklist and settings to determine if an addon may be installed.

    Returns

    A boolean - true of the addon may be installed.

    Parameters

    • addon: any

    Returns bool

Generated using TypeDoc