-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Restore gesture requirement for async clipboard write access #16890
Comments
Could this be re-evaluated? |
Am here to voice concern over this, its incredibly invasive and I would like to see it removed entirely from the Brave engine. |
When it's time to try the fix, we'll need to go shields down to test the test page when fixing as EasyList is blocking what is required to test the gesture |
Thank you for fixing brave! Interesting that this check was removed on the Chrome side for a freaking doodle new tab page purpose... It's beyond me how they can't (or won't) see that change to potentially be quite dangerous. |
Test Plan |
The above will require |
Verified with
Reproduced the issue using 1.43.88 and STR from brave/brave-core#14901 (comment).
Verified issue does not occur with 1.43.91. Checked with shields up and shields down.
Note - Per brave/brave-core#14901 (comment), if you see "NotAllowedError" message this is ok as well. I did see this when changing shield settings. |
Verification
Reproduced the issue using
Verified issue does not occur with
Note - Per brave/brave-core#14901 (comment), if you see "NotAllowedError" message this is ok as well. I did see this when changing shield settings. (Refreshed the page and the error message was dismissed) |
Verification passed on
Verified brave/brave-core#14901 Reproduced in 1.43.88 |
Chromium 66+ implements Asynchronous Clipboard API. Chromium, in contrast to Safari and Firefox, allow a website to write to the user's clipboard using
navigator.clipboard.writeText()/write()
without a user gesture (only criteria is that the tab should be active).We should require a user gesture (click, touch events) to enable use of
navigator.clipboard.writeText()
andnavigator.clipboard.write()
. Else, promise should reject.Demo website that attempts to write to the user's clipboard: https://shivankaul.com/brave/clipboard-paste.html (if you get a success message, try to paste)
The text was updated successfully, but these errors were encountered: