Earlier quoted context omitted.
Not OP, but I can say that it is a mode, which is its problem. You enter into the scroll mode and while not difficult per se to exit it can cause confusion. It is also pretty superfluous in the age of the touchpad and the ubiquity of the scroll wheel. Just another example of Microsoft working really hard to make Windows 11 look simpler, but not working on making it meaningfully simpler.
I don't know when middle-click scroll was introduced, but it definitely was before Windows 11, and at least as far back as 7. Also, "no modes" is both a question of personal preference and a sliding scale. Input-has-focus is a mode, too, but getting rid of that would be an obvious mistake.
With Firefox on X11, any page can pastejack you anytime (middle button paste)
131–140 of 195 posts
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#132Earlier quoted context omitted.
Why is it so easy to find people in this industry who don't care that users can't trust their own computers (or, by extension, anything they own with a computer in it, which is quickly becoming everything)? If I select some text and press Ctrl+C, it should copy the text I selected. The user intent is obvious. There's no excuse for the ability to hijack the clipboard to exist in the first place. Web pages shouldn't be…
A computer is a tool and also a consumer device. I think most of us are in some sense selling the output of the tool (for example a programmer sells programs, not computers). Since we are not selling computers, we’re not automatically concerned with whether people are happy with their computers. If you went to a scissor factory and told them that their scissors were too sharp, they might at least think of doing a run…
Or if instead of things like the sawstop, we made power saws that sometimes just flip open the guard and swing the blade to toward the user. But there's a safety to prevent that, but it disengages whenever you start the saw, so you need to reengage it every time you cut something in-between starting the saw and actually cutting.
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#133The X “primary selection”/middle click paste behavior this takes advantage of is one of my least favorite Linux features and I have had it disabled for years, so I didn’t even know it had been changed/removed in Wayland. Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a…
I love middle click paste, in combination with ctrl+c/ctrl+v paste it's a second clipboard, which allows to do one kind of refactoring in between doing some other refactoring in code (as just one example). I didn't know wayland doesn't support that either, one more thing to add to the list of things it doesn't support like screenshots, xclip, mouse/keyboard automation, etc...
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#134Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#135I'm embarrassed that I'm confused enough (ignorance about how webpages and javascript modern things, etc work) to not answer this on my own, but does this mean: 1) Beware! any site you visit can, via javascript, inject whatever it wants into your clipboard (write access) 2) Beware! any site you visit can, via javascript, do whatever it wants with your clipboard (READ and write access) 3) some combination of the above…
It's #1, but it's the primary selection, not the clipboard. On Linux, there's the clipboard, which is the Ctrl+C/Ctrl+V that most people are familiar with. There's also the "primary selection", which is the currently highlighted text. That selection can be pasted into a different app or text box with middle click. So you can really quickly do highlight, middle-click, highlight, middle click. The primary selection is…
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#136How is this affected by settings in Firefox to prevent sites from reading the clipboard?
It's not. I have that disabled (mostly because I hate how GitHub completely mangles and fucks up anything I paste there) and it still works. Arguably, it's "working as intended" because middle click is supposed to paste whatever is selected, and the JS did select some text. Fixing this in a way that won't cause UX regressions and can't be by-passed relatively easily might be rather tricky.
One possible approach could be to ignore selections made by JS (instead of directly by the user) for middle click paste. A more refined approach could also allow them when made by JS while handling a mouse click from the user.
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#137This is a problem with web browsers. They shall not run untrusted code from the internet.
But we are now in the stage "oh, cool, i can access my USB from internet".
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#138The X “primary selection”/middle click paste behavior this takes advantage of is one of my least favorite Linux features and I have had it disabled for years, so I didn’t even know it had been changed/removed in Wayland. Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a…
Copying should always be deliberate, not something that blasts out your clipboard when you click in the wrong place and select something unintentionally. And middle click is for opening tabs.
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#139Earlier quoted context omitted.
It's not. I have that disabled (mostly because I hate how GitHub completely mangles and fucks up anything I paste there) and it still works. Arguably, it's "working as intended" because middle click is supposed to paste whatever is selected, and the JS did select some text. Fixing this in a way that won't cause UX regressions and can't be by-passed relatively easily might be rather tricky.
> [...] and the JS did select some text. Fixing this in a way that won't cause UX regressions and can't be by-passed relatively easily might be rather tricky. One possible approach could be to ignore selections made by JS (instead of directly by the user) for middle click paste. A more refined approach could also allow them when made by JS while handling a mouse click from the user.
You can consider that to be an acceptable trade-off, but it is a trade-off.
Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)
#140Firefox tends to have worse security by default than other browsers so this isn't a surprise to me. Most browser exploits are delivered by JavaScript, so the safest course of action is to use NoScript judiciously, run the browser in a VM, and pray.