-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Make sure WebXDC cannot access the clipboard #3416
Comments
On Wed, Sep 27, 2023 at 05:48 -0700, link2xt wrote:
See discussion at #3413 (comment)
i don't understand -- when i am opening the editor i *want* to be able to paste something into it.
Are you suggesting to disable this ability completely?
|
WebXDC app should not be able to access the clipboard without explicit user action. Otherwise it is possible to make an app that posts your clipboard to the public board every time you open it.
New Clipboard API require a Pasting into forms is possible in any case. |
On Thu, Sep 28, 2023 at 02:15 -0700, link2xt wrote:
WebXDC app should not be able to access the clipboard without explicit user action. Otherwise it is possible to make an app that posts your clipboard to the public board every time you open it.
`execCommand('paste')` should not work: https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand
New [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) require a `clipboard-read` permission, this should be asked for each app or disabled.
if i go to any https-website, can they get at the content of my clipboard in default browser?
Or is that only possible for browser-controlled input/edit-fields ?
|
we can try to overwrite it, but then we have the iframe problem again:
btw it still works in electron 26. also the clipboard api does not work, because it's permission is denied, somehow |
FYI breaking changes: - https://www.electronjs.org/blog/electron-33-0#breaking-changes - https://www.electronjs.org/blog/electron-34-0#breaking-changes Closes #3416. Appears to work after some basic testing.
FYI breaking changes: - https://www.electronjs.org/blog/electron-33-0#breaking-changes - https://www.electronjs.org/blog/electron-34-0#breaking-changes Closes #3416. Appears to work after some basic testing.
See discussion at #3413 (comment)
The text was updated successfully, but these errors were encountered: