为什么我的 chrome 扩展要求历史权限?
Why does my chrome extension ask for history permissions?
在我的 manifest.json
文件中,我没有明确列出任何用于读取用户历史记录的内容,但是,当您尝试安装扩展程序时会出现此警告。
这是我的清单文件:
{
"manifest_version": 2,
"name": "QueueTube for YouTube!",
"short_name": "QueueTube",
"description": "Search YouTube without stopping the video, and make your own playlists!",
"version": "1.5",
"author": "Dara Javaherian",
"permissions": ["tabs", "*://*.youtube.com/*"],
"background": {
"persistent":true,
"scripts": [
"bg/socket.io.js",
"bg/background.js"
]
},
"icons": {
"128": "icons/youtube-128.png"
},
"browser_action": {
"default_icon": "icons/icon.png",
"default_popup": "popup/popup.html"
},
"web_accessible_resources": [
"spinner.gif"
],
"content_scripts" : [{
"matches" :
["https://www.youtube.com/*",
"http://www.youtube.com/*"],
"js" : [
"js/jquery.js",
"js/inject.js"],
"css" : ["styles/styles.css"]
}]
}
有谁知道为什么会显示此权限?
这是 "tabs"
权限的 standard warning。
它允许您查询所有选项卡的 URL 并在更改时收到通知。这使您可以实时监视用户的历史记录 - 即使您无权访问浏览器自己的历史记录日志。
请注意,在大多数情况下 不需要"tabs"
权限。提供对 URL 的访问基本上是包含它的唯一原因。你can use most of the tabs
API without it, and can get access to current tab without warning using the "activeTab"
permission.
Warnings and their triggers
It can be surprising when adding a permission such as "tabs" results
in the seemingly unrelated warning that the extension can access your
browsing activity. The reason for the warning is that although the
chrome.tabs API might be used only to open new tabs, it can also be
used to see the URL that's associated with every newly opened tab
(using their tabs.Tab objects)
来源:https://developer.chrome.com/extensions/permission_warnings
在我的 manifest.json
文件中,我没有明确列出任何用于读取用户历史记录的内容,但是,当您尝试安装扩展程序时会出现此警告。
这是我的清单文件:
{
"manifest_version": 2,
"name": "QueueTube for YouTube!",
"short_name": "QueueTube",
"description": "Search YouTube without stopping the video, and make your own playlists!",
"version": "1.5",
"author": "Dara Javaherian",
"permissions": ["tabs", "*://*.youtube.com/*"],
"background": {
"persistent":true,
"scripts": [
"bg/socket.io.js",
"bg/background.js"
]
},
"icons": {
"128": "icons/youtube-128.png"
},
"browser_action": {
"default_icon": "icons/icon.png",
"default_popup": "popup/popup.html"
},
"web_accessible_resources": [
"spinner.gif"
],
"content_scripts" : [{
"matches" :
["https://www.youtube.com/*",
"http://www.youtube.com/*"],
"js" : [
"js/jquery.js",
"js/inject.js"],
"css" : ["styles/styles.css"]
}]
}
有谁知道为什么会显示此权限?
这是 "tabs"
权限的 standard warning。
它允许您查询所有选项卡的 URL 并在更改时收到通知。这使您可以实时监视用户的历史记录 - 即使您无权访问浏览器自己的历史记录日志。
请注意,在大多数情况下 不需要"tabs"
权限。提供对 URL 的访问基本上是包含它的唯一原因。你can use most of the tabs
API without it, and can get access to current tab without warning using the "activeTab"
permission.
Warnings and their triggers
It can be surprising when adding a permission such as "tabs" results in the seemingly unrelated warning that the extension can access your browsing activity. The reason for the warning is that although the chrome.tabs API might be used only to open new tabs, it can also be used to see the URL that's associated with every newly opened tab (using their tabs.Tab objects)
来源:https://developer.chrome.com/extensions/permission_warnings