Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 369
Karel Bílek Avatar asked Jul 01 '13 14:07

Karel Bílek


1 Answers

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.

like image 145
Karel Bílek Avatar answered Sep 28 '22 02:09

Karel Bílek