Restore gesture requirement for async clipboard write access
See original GitHub issueChromium 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()
and navigator.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)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Unblocking clipboard access - web.dev
The Async Clipboard API addresses these issues, providing a well-defined permissions model that doesn't block the page. The Async Clipboard API ...
Read more >'clipboard-write' is not a valid value for enumeration ...
So to be clear, you can already write to the clipboard with a user gesture, custom selection, and document.execCommand("copy") . Supporting writeText() and ......
Read more >Clipboard API and events - W3C
Async Clipboard API - This API provides direct access to read and write the clipboard data. Since this is considered to be a...
Read more >Async Clipboard API: Accessing the clipboard using JavaScript
The Async Clipboard API provides Web apps with the ability to programmatically read from and write to the system clipboard easily.
Read more >Websites may write to the clipboard in Chrome without user ...
All Chromium-based browsers that are up to date are affected by this. Firefox and Safari do require a user gesture before websites may...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Am here to voice concern over this, its incredibly invasive and I would like to see it removed entirely from the Brave engine.
Could this be re-evaluated? Personally i really don’t like this clipboard feature at all and want it gone in it’s entirety… That’s probably not going to happen so please put it behind a permission request at the very least.