mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
Addresses https://github.com/facebook/react/issues/32244. ### Chromium We will use [chrome.permissions](https://developer.chrome.com/docs/extensions/reference/api/permissions) for checking / requesting `clipboardWrite` permission before copying something to the clipboard. ### Firefox We will keep `clipboardWrite` as a required permission, because there is no reliable and working API for requesting optional permissions for extensions that are extending browser DevTools: - `chrome.permissions` is unavailable for devtools pages - https://bugzilla.mozilla.org/show_bug.cgi?id=1796933 - You can't call `chrome.permissions.request` from background, because this instruction has to be executed inside user-event callback, basically only initiated by user. I don't really want to come up with solutions like opening a new tab with a button that user has to click.
66 lines
1.4 KiB
JSON
66 lines
1.4 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "React Developer Tools",
|
|
"description": "Adds React debugging tools to the Chrome Developer Tools.",
|
|
"version": "6.1.0",
|
|
"version_name": "6.1.0",
|
|
"minimum_chrome_version": "102",
|
|
"icons": {
|
|
"16": "icons/16-production.png",
|
|
"32": "icons/32-production.png",
|
|
"48": "icons/48-production.png",
|
|
"128": "icons/128-production.png"
|
|
},
|
|
"action": {
|
|
"default_icon": {
|
|
"16": "icons/16-disabled.png",
|
|
"32": "icons/32-disabled.png",
|
|
"48": "icons/48-disabled.png",
|
|
"128": "icons/128-disabled.png"
|
|
},
|
|
"default_popup": "popups/disabled.html"
|
|
},
|
|
"devtools_page": "main.html",
|
|
"content_security_policy": {
|
|
"extension_pages": "script-src 'self'; object-src 'self'"
|
|
},
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": [
|
|
"main.html",
|
|
"panel.html",
|
|
"build/*.js"
|
|
],
|
|
"matches": [
|
|
"<all_urls>"
|
|
],
|
|
"extension_ids": []
|
|
}
|
|
],
|
|
"background": {
|
|
"service_worker": "build/background.js"
|
|
},
|
|
"permissions": [
|
|
"scripting",
|
|
"storage",
|
|
"tabs"
|
|
],
|
|
"optional_permissions": [
|
|
"clipboardWrite"
|
|
],
|
|
"host_permissions": [
|
|
"<all_urls>"
|
|
],
|
|
"content_scripts": [
|
|
{
|
|
"matches": [
|
|
"<all_urls>"
|
|
],
|
|
"js": [
|
|
"build/prepareInjection.js"
|
|
],
|
|
"run_at": "document_start"
|
|
}
|
|
]
|
|
}
|