Implemented by
[scriptable, uuid(8439f9c0-da03-4260-8b21-dc635eed28fb)]
interface nsIBlocklistService : nsISupports
Constants
const
unsigned long
STATE_NOT_BLOCKED = 0
const
unsigned long
STATE_SOFTBLOCKED = 1
const
unsigned long
STATE_BLOCKED = 2
Methods
Determine the blocklist state of an add-on
@param id
The ID of the item.
@param version
The item's version.
@param 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.
@param 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.
unsigned long
getAddonBlocklistState(in AString id, in AString version, [optional] in AString appVersion, [optional] in AString toolkitVersion)
Determine the blocklist state of a plugin
@param plugin
The plugin to get the state for
@param 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.
@param 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.
unsigned long
getPluginBlocklistState(in nsIPluginTag plugin, [optional] in AString appVersion, [optional] in AString toolkitVersion)
Determine if an item is blocklisted
@param id
The ID of the item.
@param version
The item's version.
@param 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.
@param 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.
boolean
isAddonBlocklisted(in AString id, in AString version, [optional] in AString appVersion, [optional] in AString toolkitVersion)
Compare to: