nsIBlocklistService

Methods

isAddonBlocklisted(addon, appVersion, toolkitVersion)

Determine if an item is blocklisted

Parameters

addon The addon item to be checked.
appVersion The version of the application we are checking in the blocklist. If this parameter is null, the version of the running application is used.
toolkitVersion The version of the toolkit we are checking in the blocklist. If this parameter is null, the version of the running toolkit is used.

Returns

true if the item is compatible with this version of the application or this version of the toolkit, false, otherwise.

getAddonBlocklistState(addon, appVersion, toolkitVersion)

Determine the blocklist state of an add-on

Parameters

id The addon item to be checked.
appVersion The version of the application we are checking in the blocklist. If this parameter is null, the version of the running application is used.
toolkitVersion The version of the toolkit we are checking in the blocklist. If this parameter is null, the version of the running toolkit is used.

Returns

The STATE constant.

getPluginBlocklistState(plugin, appVersion, toolkitVersion)

Determine the blocklist state of a plugin

Parameters

plugin The plugin to get the state for
appVersion The version of the application we are checking in the blocklist. If this parameter is null, the version of the running application is used.
toolkitVersion The version of the toolkit we are checking in the blocklist. If this parameter is null, the version of the running toolkit is used.

Returns

The STATE constant.

getAddonBlocklistURL(addon, appVersion, toolkitVersion)

Determine the blocklist web page of an add-on.

Parameters

addon The addon item whose url is required.

Returns

The URL of the description page.

getPluginBlocklistURL(plugin)

Determine the blocklist web page of a plugin.

Parameters

plugin The blocked plugin that we are determining the web page for.

Returns

The URL of the description page.

getPluginInfoURL(plugin)

Determine the blocklist infoURL of a plugin.

Parameters

plugin The blocked plugin that we are determining the infoURL for.

Returns

The preferred URL to present the user, or |null| if it is not available.

Constants

STATE_NOT_BLOCKED

STATE_SOFTBLOCKED

STATE_BLOCKED

STATE_OUTDATED

STATE_VULNERABLE_UPDATE_AVAILABLE

STATE_VULNERABLE_NO_UPDATE