mozilla
Your Search Results

    nsIBlocklistPrompt

    This interface is used, if available, by the default implementation of nsIBlocklistService to display a confirmation user interface to the user before blocking extensions or plugins.
    1.0
    28
    Introduced
    Gecko 2.0
    Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

    Method overview

    void prompt([array, size_is(aCount)] in nsIVariant aAddons, [optional] in PRUint32 aCount);

    Methods

    prompt()

    Prompt the user about newly blocked addons. The prompt is then responsible for soft-blocking any addons that need to be afterwards.

    void prompt(
      [array, size_is(aCount)] in nsIVariant aAddons,
      in PRUint32 aCount Optional
    );
    
    Parameters
    aAddons
    An array of addons and plugins that are blocked. These are javascript objects with properties:
    • name - the plugin or extension name
    • version - the version of the extension or plugin
    • icon - the plugin or extension icon
    • disable - can be used by the nsIBlocklistPrompt to allows users to decide whether a soft-blocked add-on should be disabled
    • blocked - true if the item is hard-blocked, false otherwise
    • item - the nsIPluginTag or Addon object
    aCount Optional
    The number of addons.

    Document Tags and Contributors

    Contributors to this page: Sheppy, trevorh, fscholz
    Last updated by: Sheppy,