News for hackers. Stuff that matters.
Re:Chrome allows websites to write to the clipboard without ... by mamoriamohit on Saturday August 27, 2022 @03:29AM (#32616688)
Does changing it to require permission would mean that every "Copy Code" button will need a pop-up?

I am torn between the usability vs security of this issue.

Re:Chrome allows websites to write to the clipboard without ... by thrdbndndn on Saturday August 27, 2022 @04:10AM (#32616912)
The title is kinda misleading. "[W]ith user's permission" probably should be "with user's action" instead.

By default, you can copy to clipboard in all the major browsers when user takes an action, like click some buttons or links. So all these "copy code" buttons won't stop working. What does not in Firefox (and shouldn't in Chrome) is to do so without user's action.

Note: I have no idea what the rigid definition of "user's action" is. But clicking a button counts.

Re:Chrome allows websites to write to the clipboard without ... by quickthrower2 on Saturday August 27, 2022 @04:47AM (#32617092)
Style the button to be “Reject All” of a cookie notice or a “X” of a marketing popup.