chrome的"permissions"会生成什么消息?扩展清单中的属性? [英] What message is generated by the chrome "permissions" property in an extension manifest?
问题描述
给出一个包含以下权限"数组的清单,当用户在Chrome中安装具有此权限的扩展程序时,用户希望看到什么消息?
Given a manifest containing the following "permissions" array, what message can a user expect to see when installing an extension with this permission in Chrome?
{
"name": "My extension",
...
"permissions": [
"http://www.google.com/"
],
...
}
推荐答案
访问chrome://extensions
,搜索您的扩展程序,然后单击详细信息"(Chrome 40及更低版本中为权限").这将显示一个屏幕,其中显示权限警告,您将看到用户是否安装了扩展程序
Visit chrome://extensions
, search for your extension and click on "Details" ("Permissions" in Chrome 40 and earlier). That will display a screen with the permission warnings that you'd see if the user installs the extension.
您还可以使用 chrome.management.getPermissionWarningsByManifest
方法来获取列表给定的包含清单文件内容的字符串的权限警告.
You can also use the chrome.management.getPermissionWarningsByManifest
method to get a list of permission warnings for a given string that contains the contents of the manifest file.
这篇关于chrome的"permissions"会生成什么消息?扩展清单中的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!