Chrome plugin - Permission chrome-devtools://*/* i

2020-07-16 07:00发布

问题:

I am maintaining one extension for google chrome and I'm receiving complaints from random users saying that it just stopped working.

The error message in "extensions" section is this:

Chrome plugin - Permission chrome-devtools://*/* is unknown or URL pattern is malformed

It seems it's not a very popular issue - I wasn't able to find any trace of that. My permissions section of the manifest file looks like this:

    "permissions": [
       "tabs", "http://*/*", "https://*/*", "chrome-devtools://*/*"
    ]

And it works just fine for most people

回答1:

If you look at documentation you will find that only valid schemes are: '*' | 'http' | 'https' | 'file' | 'ftp' | 'chrome-extension'. I'm guessing that your recent problems are due to this issue being fixed.