News for hackers. Stuff that matters.
Re:Chrome allows websites to write to the clipboard without ... by justahuman74 on Friday August 26, 2022 @10:43PM (#32615113)
Why are websites allowed to know that you've selected plain text? (genuinely clueless on web stuff)
Re:Chrome allows websites to write to the clipboard without ... by zebracanevra on Friday August 26, 2022 @10:50PM (#32615160)
I think there are a bunch of decent uses for that, like rich text editors (eg select text, hit ctrl-b, and the text is bolded).

There are also some sites that popup a small box above your selection with a share box. Straight to hell with those. Compulsive selectors go mad on those sites. That's you, medium.com.

Re:Chrome allows websites to write to the clipboard without ... by denton-scratch on Saturday August 27, 2022 @09:38AM (#32618840)
But why does a rich text editor need to talk to a website?
Re:Chrome allows websites to write to the clipboard without ... by LocalH on Saturday August 27, 2022 @09:51AM (#32619010)
What if the rich text editor and the website are the same thing? What if the rich text editor is part of a larger tool that is the website?
Re:Chrome allows websites to write to the clipboard without ... by denton-scratch on Saturday August 27, 2022 @10:16AM (#32619268)
Well, I'm not sure what you're waving at. If the website is nothing more than a RTE, then it's better (and safer) to do it in the browser. If the RTE is just part of the website, then that's a part that's better done in the browser.

Perhaps you want a RTE that doesn't depend on JS. I think that's a reasonable thing to want; but if you normally browse with JS switched off, then running into a working RTE is at least going to violate the Principle of Least Surprise.

Re:Chrome allows websites to write to the clipboard without ... by entropie on Friday August 26, 2022 @11:00PM (#32615214)
Why are websites allowed to know that I hover an element?

Javascript knows about clicks, doubleclicks, hovers... like almost every interaction the user does. There are use cases but also potential to be exploited somehow.

Re:Chrome allows websites to write to the clipboard without ... by paulryanrogers on Friday August 26, 2022 @11:21PM (#32615312)
Because websites are apps now. The browser is your operating system.
Re:Chrome allows websites to write to the clipboard without ... by cypress66 on Friday August 26, 2022 @11:43PM (#32615420)
Click events, hover, etc have always existed (since js exists I'm pretty sure).
Re:Chrome allows websites to write to the clipboard without ... by paulryanrogers on Saturday August 27, 2022 @11:10AM (#32619871)
Regardless of intent, today websites are often built as 'apps', making browsers more and more like your OS. JS is how that's usually implemented.
Re:Chrome allows websites to write to the clipboard without ... by shultays on Saturday August 27, 2022 @06:13AM (#32617506)
In forums you can select parts of someone's post and quote that part in your reply