trusktr
trusktr

Reputation: 45502

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

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

Upvotes: 0

Views: 531

Answers (1)

Rob W
Rob W

Reputation: 349262

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.

Upvotes: 3

Related Questions