What message is generated by the chrome “permissions” property in an extension manifest?

故事扮演 提交于 2019-12-25 04:12:13

问题


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/"
  ],
  ...
}

回答1:


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.

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.



来源:https://stackoverflow.com/questions/27786954/what-message-is-generated-by-the-chrome-permissions-property-in-an-extension-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!