News for hackers. Stuff that matters.
Re:With Firefox on X11, any page can pastejack you anytime (... by layer8 on Saturday October 21, 2023 @12:12PM (#37968042)
I don’t care about middle-click paste, but having selection auto-copy is also implemented by terminal emulators like Putty on Windows, and I wouldn’t want to miss that.

What’s problematic with the Firefox behavior is that content gets copied (pasted) that wasn’t selected by the user.

Re:With Firefox on X11, any page can pastejack you anytime (... by o11c on Saturday October 21, 2023 @12:54PM (#37968472)
It's absolutely no different than if the actual HTML contained invisible text though.

The patch here would not help security at all. Only using control-x control-e before pasting (so that it comes into a real editor, not directly in the terminal) can help.

Re:With Firefox on X11, any page can pastejack you anytime (... by layer8 on Saturday October 21, 2023 @04:08PM (#37970056)
It’s different in that the content can change after you selected it.

Invisible text can add to what you selected, but it can’t replace it.

There’s also an argument to be made that invisible text shouldn’t be copied, though that’s harder to define precisely (you don’t want to copy “display: none”, but you want to copy scrolled-out content).

Re:With Firefox on X11, any page can pastejack you anytime (... by mmis1000 on Saturday October 21, 2023 @01:18PM (#37968693)
I don't think selection along is enough to copy in windows terminal or putty. You also need to right click once to trigger the copy. So the moment that triggers actual copy always requires human interaction.
Re:With Firefox on X11, any page can pastejack you anytime (... by layer8 on Saturday October 21, 2023 @04:02PM (#37970024)