Karel Bílek
Karel Bílek

Reputation: 37658

webRequest permission malformed

I am trying to set up permission for Chrome so it can ask for webRequest.

However, if I add the permission like in the manual here http://developer.chrome.com/extensions/webRequest.html

{
  "name": "My extension",
  ...
  "permissions": [
    "webRequest",
    "*://*.google.com"
  ],
  ...
}

All I get from Chrome is

There were warnings when trying to install this extension: Permission '://.google.com' is unknown or URL pattern is malformed.

Where is the error in the manual, what should I do differently?

Upvotes: 6

Views: 7047

Answers (1)

Karel Bílek
Karel Bílek

Reputation: 37658

Google is missing slash after the address. This works.

{
  "name": "My extension",
  ...
  "permissions": [
    "webRequest",
    "*://*.google.com/"
  ],
  ...
}

I... am not sure where to report the bug to google exactly.

Upvotes: 17

Related Questions