2024-11-15 18:16:37 +00:00
|
|
|
// Copyright 2012 The Chromium Authors
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// This features file defines extension APIs implemented under src/chrome.
|
|
|
|
// See chrome/common/extensions/api/_features.md to understand this file, as
|
|
|
|
// well as feature.h, simple_feature.h, and feature_provider.h.
|
|
|
|
//
|
|
|
|
// Note that specifying "web_page", "privileged_web_page", or "all" as a context
|
|
|
|
// type will require manually updating javascript bindings code in the
|
|
|
|
// renderer.
|
|
|
|
|
2020-01-15 23:11:51 +00:00
|
|
|
{
|
2023-11-13 07:27:18 +00:00
|
|
|
"action": {
|
|
|
|
"dependencies": ["manifest:action"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"]
|
2023-11-13 07:27:18 +00:00
|
|
|
},
|
|
|
|
"action.isEnabled": {
|
|
|
|
"channel": "stable"
|
|
|
|
},
|
|
|
|
"action.getBadgeTextColor": {
|
|
|
|
"channel": "stable"
|
|
|
|
},
|
|
|
|
"action.setBadgeTextColor": {
|
|
|
|
"channel": "stable"
|
|
|
|
},
|
2020-01-15 23:11:51 +00:00
|
|
|
"tabs": {
|
|
|
|
"channel": "stable",
|
|
|
|
"extension_types": ["extension"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"]
|
2020-01-21 00:44:09 +00:00
|
|
|
},
|
2023-08-09 14:38:13 +00:00
|
|
|
"tabs.executeScript": {
|
|
|
|
"max_manifest_version": 2
|
|
|
|
},
|
|
|
|
"tabs.insertCSS": {
|
|
|
|
"max_manifest_version": 2
|
|
|
|
},
|
|
|
|
"tabs.removeCSS": {
|
|
|
|
"max_manifest_version": 2
|
|
|
|
},
|
2020-01-21 00:44:09 +00:00
|
|
|
"extension": {
|
|
|
|
"channel": "stable",
|
|
|
|
"extension_types": ["extension"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"]
|
2020-01-21 00:44:09 +00:00
|
|
|
},
|
2020-02-06 21:42:34 +00:00
|
|
|
"extension.getBackgroundPage": {
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"],
|
2020-02-06 21:42:34 +00:00
|
|
|
"disallow_for_service_workers": true
|
|
|
|
},
|
2020-01-21 00:44:09 +00:00
|
|
|
"extension.getURL": {
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension", "unprivileged_extension", "content_script"],
|
2023-08-09 14:38:13 +00:00
|
|
|
"max_manifest_version": 2
|
2020-02-13 00:39:12 +00:00
|
|
|
},
|
2024-03-26 11:33:47 +00:00
|
|
|
"extension.lastError": {
|
|
|
|
"contexts": [
|
2024-04-15 22:10:32 +00:00
|
|
|
"privileged_extension",
|
|
|
|
"unprivileged_extension",
|
2024-03-26 11:33:47 +00:00
|
|
|
"content_script"
|
|
|
|
],
|
|
|
|
"max_manifest_version": 2
|
|
|
|
},
|
2020-03-05 14:56:21 +00:00
|
|
|
"i18n": {
|
|
|
|
"channel": "stable",
|
|
|
|
"extension_types": ["extension"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension", "unprivileged_extension", "content_script"],
|
2020-03-05 14:56:21 +00:00
|
|
|
"disallow_for_service_workers": true
|
|
|
|
},
|
2020-02-13 00:39:12 +00:00
|
|
|
"mimeHandlerViewGuestInternal": {
|
|
|
|
"internal": true,
|
|
|
|
"contexts": "all",
|
|
|
|
"channel": "stable",
|
|
|
|
"matches": ["<all_urls>"]
|
|
|
|
},
|
2023-05-02 08:27:32 +00:00
|
|
|
"pdfViewerPrivate": {
|
|
|
|
"dependencies": ["permission:pdfViewerPrivate"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"]
|
2023-05-02 08:27:32 +00:00
|
|
|
},
|
2020-02-13 00:39:12 +00:00
|
|
|
"resourcesPrivate": [{
|
|
|
|
"dependencies": ["permission:resourcesPrivate"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"]
|
2020-02-13 00:39:12 +00:00
|
|
|
}, {
|
|
|
|
"channel": "stable",
|
|
|
|
"contexts": ["webui"],
|
|
|
|
"matches": [
|
|
|
|
"chrome://print/*"
|
|
|
|
]
|
2023-08-28 14:39:28 +00:00
|
|
|
}],
|
|
|
|
"scripting": {
|
|
|
|
"dependencies": ["permission:scripting"],
|
2024-04-15 22:10:32 +00:00
|
|
|
"contexts": ["privileged_extension"]
|
2024-03-26 11:33:47 +00:00
|
|
|
},
|
|
|
|
"scripting.globalParams": {
|
|
|
|
"channel": "trunk",
|
|
|
|
"dependencies": ["permission:scripting"],
|
|
|
|
"contexts": ["content_script"]
|
2023-08-28 14:39:28 +00:00
|
|
|
}
|
2020-01-15 23:11:51 +00:00
|
|
|
}
|