Chrome插件 - 权限chrome-devtools:// * / *未知或URL模式格式错误 [英] Chrome plugin - Permission chrome-devtools://*/* is unknown or URL pattern is malformed

查看:1331
本文介绍了Chrome插件 - 权限chrome-devtools:// * / *未知或URL模式格式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Google Chrome维护了一个扩展程序,而且我收到来自随机用户的投诉,说它刚刚停止工作。

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

extensions部分的错误消息是这样的:

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

推荐答案

文档,你会发现只有有效的方案是:'*' | 'http'| 'https'| '文件'| 'ftp'| 铬扩展名 。我猜你最近遇到的问题是由于此问题被固定。

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.

这篇关于Chrome插件 - 权限chrome-devtools:// * / *未知或URL模式格式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆