pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.43k stars 84 forks source link

Middle-click-paste during scroll is an accident waiting to happen #441

Open KloudKoder opened 5 years ago

KloudKoder commented 5 years ago

Distribution (run cat /etc/os-release):

All

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Any Firefox version, also many other apps

Issue/Bug Description:

There is a feature enabled by default which allows the user to click the middle mouse button (which is in most cases literally the mouse wheel) to paste previously copied text. While technically not a bug, this is dangerous behavior because pressing the scroll wheel slightly too hard can just randomly inject text into an email, source code, or whatever. Worse, because the user is probably scrolling, it's very easy to not realize that this has occurred. Then we all wonder why some random words suddenly appear throughout our document...

Fortunately, gnome-tweaks offers an option to turn this off. Unfortunately, at least in my browser testing, it doesn't work. Is there any way this can be disabled at a low level so it can't possibly occur? Even if this dangerous behavior is enabled by default, it would be wonderful to have some robust way to shut it off before we all go pasting secrets all over the place.

Steps to reproduce (if you know):

Open Firefox. Type some junk in the URL bar and copy it to the clip board via Ctrl+C. Now click the mouse wheel and watch it paste, as many times as you like.

Expected behavior:

(Explained above.)

Other Notes:

bwat47 commented 5 years ago

For firefox you can go to about:config and set middlemouse.paste to false

kjburns commented 5 years ago

This seems to be a system-wide behavior though. It has also gotten me in minor trouble in the past, and it is probably upstream in gnome, because even when I was running fedora this happened. Either a pop-specific fix or an upstream fix, or even the option to change it the behavior in the control panel, would be nice.

KloudKoder commented 5 years ago

Got burned by this again. For goodness' sake, please disable this horrible "feature".

lloydmedley commented 2 years ago

For firefox you can go to about:config and set middlemouse.paste to false

Thank you, I agree an accident waiting to happen. Have just successfully changed the middle click/scroll behavior in Firefox on Pop!_OS 20.10 so that it no longer pastes!