-
Notifications
You must be signed in to change notification settings - Fork 47.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does DevTools need permission to write to the clipboard? #32244
Comments
I'm not going to use this extension until this permission is removed. |
We should probably just move these to Also keep in mind that this permission only grants write access not read access. |
Yes, as @eps1lon mentioned, we only use it for write access. We don't have a permission to read clipboard data, please re-read the text that you've highlighted on the screenshot. We added it here #32077 to make it more verbose and fix Firefox extension. I think Chrome doesn't really check for this permission to allow extensions writing to clipboard. Thanks for flagging. I will research on moving it to optional permissions, this sound like a better approach. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
FYI, I am rolling back the release of 6.1.0 in Chrome extensions store. This should be replaced with previous release of 6.0.1, which will be temporarily versioned as 6.1.0.1. Again, I want to make this clear that we don't have permissions to read from clipboard, please re-read the message from Chrome. Also, the implementation for clipboard writing has been present in the extension for years, it is just we listed this permission now to make it explicit and it fired back. I am working on moving this permission to the list of optional ones, and then will publish a new patch version. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Addresses #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.
…32262) Addresses facebook#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. DiffTrain build for [221f300](facebook@221f300)
…32262) Addresses facebook#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. DiffTrain build for [221f300](facebook@221f300)
React DevTools is asking for permission to
readwrite the clipboard.Why?
The text was updated successfully, but these errors were encountered: