nsIBlocklistPrompt 编辑
xpcom/system/nsIBlocklistService.idl
Scriptable 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 66 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论