3 ms·
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 mi
by layer8 3y ago
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.
- o11c 3y agoIt'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.
- layer8 3y agoIt’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).
- mmis1000 3y agoI 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.
- layer8 3y agoNo, it works immediately upon selection in Putty: https://documentation.help/PuTTY/using-selection.html https://documentation.help/PuTTY/using-selection.html Also in Mintty: https://mintty.github.io/mintty.1.html#%03Text%20selection,%20copy%20&%20paste https://mintty.github.io/mintty.1.html#%03Text%20selection,%...