by oefrha · 4y ago · 0 comments
https://chromium.googlesource.com/chromium/src/+/4d7b74b051a...
commit 4d7b74b051abfe5945f418601fdc2ffc8ce3072c
Author: Anupam Snigdha <snianu@microsoft.com>
Date: Tue Jun 07 16:36:28 2022
[Clipboard API] Remove user gesture requirement for read/writeText.
Adding user gesture requirement for readText and writeText APIs
breaks NTP doodle sharing. We are relaxing this check for now, but
we should fix this for sites to not rely on these APIs to be called
without a user gesture.
See NewTabPageDoodleShareDialogFocusTest.All test for more details.Clipboard should exist at the OS level and web browsers should be unable to distinguish it from keyboard input.
But chrome-search://local-ntp/doodles.js is served from a chrome-search:// url, chrome could give it permissions without giving for every web page
If you look at the commit comment, it indicates that they understood they were only disabling the checks for the new clipboard feature they were working on, not for all clipboard actions.