desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Middle Click on Empty Space Immediately Searches in Default Search Engine the Clipboard Text

Open YouCanTouCan opened this issue 1 year ago • 16 comments

Captchas

  • [x] I have read the instructions.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.

What happened?

This is a strange one - In 1.7.5b, there was the issue where middle clicking in the empty space did not make a new tab. Now, in 1.7.6b, it does, but instead of opening the URLbar first like it should, it skips that step, makes a new tab, and searches in my default search engine (I tried with both google and kagi) whatever text is currently in my clipboard. Using right click + new tab works fine, double left clicking works fine, the new tab button works fine, it's just middle clicking that does this. This happens both when I middle click with my mouse, and when I do so with my laptop's mousepad.

I tested this in a profile with no mods, no CSS, and no extensions. My OS is Fedora 41, the KDE spin.

https://github.com/user-attachments/assets/19d66f91-8e70-4005-a69c-a3967a42e9d6

Reproducible?

  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.7.6b

What platform are you seeing the problem on?

Linux (Tarball)

Relevant log output if applicable


YouCanTouCan avatar Feb 08 '25 15:02 YouCanTouCan

Can confirm the same behavior, also on Fedora 41.

hikikomero avatar Feb 08 '25 17:02 hikikomero

I'm having a similar issue, but instead middle click on empty space does nothing at all. It worked fine before newest update. Even reverting back to new tab page doesn't fix it.

Distro: CachyOS kernel 6.13.2-2 (Arch Linux) DE: KDE Plasma 6.2.5

Additional input: Didn't want to open a new issue for something so similar, so hope you don't mind if I piggyback here. Double click still works fine and I can still middle click to close tabs.

This was a really weird move for Zen-Browser, as a lot of users use new tab pages for self-hosted dashboards or new tab extensions. I can't see many people using this feature, tbh. Maybe add it as a mod?

SleepyScribe avatar Feb 08 '25 22:02 SleepyScribe

I'm having a similar issue, but instead middle click on empty space does nothing at all. It worked fine before newest update. Even reverting back to new tab page doesn't fix it.

Are you sure you updated to 1.7.6b? That was an issue in 1.7.5b, but it was fixed for me at least with the latest update and replaced with the issue I described here.

YouCanTouCan avatar Feb 09 '25 01:02 YouCanTouCan

i'm facing this on arch loonix as well (1.7.6b) the middle click is supposed to open new tabs or the urlbar but opens the search page w the text from the clipboard

wysh3 avatar Feb 09 '25 03:02 wysh3

for now just turn off browser.tabs.searchclipboardfor.middleclick to make it work like before

wysh3 avatar Feb 09 '25 03:02 wysh3

Apparently, this setting

for now just turn off browser.tabs.searchclipboardfor.middleclick to make it work like before

is turned on by default on linux (?) but not on windows, if that is so the necessary change would be to make the default consistent across platforms

JSGRD22 avatar Feb 09 '25 04:02 JSGRD22

it's a useful feature for some, otherwise

JSGRD22 avatar Feb 09 '25 04:02 JSGRD22

I'm having a similar issue, but instead middle click on empty space does nothing at all. It worked fine before newest update. Even reverting back to new tab page doesn't fix it.

Are you sure you updated to 1.7.6b? That was an issue in 1.7.5b, but it was fixed for me at least with the latest update and replaced with the issue I described here.

Ah, this is it. Is the AUR upload corrupted? I can't install from tarball and yay/paru isn't reflecting the 1.7.6b package for some reason. Tarball is invalid/corrupted.

SleepyScribe avatar Feb 09 '25 17:02 SleepyScribe

Ah, this is it. Is the AUR upload corrupted? I can't install from tarball and yay/paru isn't reflecting the 1.7.6b package for some reason. Tarball is invalid/corrupted.

hello?? Image

wysh3 avatar Feb 09 '25 18:02 wysh3

Ah, this is it. Is the AUR upload corrupted? I can't install from tarball and yay/paru isn't reflecting the 1.7.6b package for some reason. Tarball is invalid/corrupted.

hello?? Image

My end then. No idea what's going on. Back to the tinker table. It's probably CachyOS mirrors (though I can't install from source, either).

EDIT: Finally installed from aur git after restart. Anyone having this issue on CachyOS clone the .git from the AUR and makepkg -si, at least until Cachy updates it's mirrors.

EDIT 2: CachyOS mirrors now reflect the most up to date version.

SleepyScribe avatar Feb 09 '25 18:02 SleepyScribe

I'm having the same issue on 1.8.2b (Arch Linux, Gnome on Wayland). Firefox opens a new Home tab with middle click as expected, even if browser.tabs.searchclipboardfor.middleclick and middlemouse.paste are set to true or false.

belenos avatar Mar 06 '25 10:03 belenos

I also had the same issue, however I thought I'd mention it's not items from my clipboard. Whenever I highlight text, it will use that as the text that gets copied even though it doesn't show in my clipboard history. I'm running the latest stable version on Arch Linux.

Setting browser.tabs.searchclipboardfor.middleclick in about:config "fixed" this behaviour.

vincentcomfy avatar Mar 22 '25 16:03 vincentcomfy

Setting browser.tabs.searchclipboardfor.middleclick in about:config "fixed" this behaviour.

I've tried that. The best workaround I've found was to move the Zen Home Page button to the sidebar and middle click on it, then set it to open Firefox Home.

belenos avatar Mar 22 '25 23:03 belenos

Setting browser.tabs.searchclipboardfor.middleclick in about:config "fixed" this behaviour.

I've tried that. The best workaround I've found was to move the Zen Home Page button to the sidebar and middle click on it, then set it to open Firefox Home.

Opening a new home tab isn't default behaviour anymore as far as I'm aware, the current new tab behaviour mimics Arc where opening a new tab opens a search box. Unless I'm misunderstanding your issue.

See https://www.reddit.com/r/zen_browser/comments/1ik6zat/i_dont_like_the_change_to_new_tab_behavior/

vincentcomfy avatar Mar 23 '25 14:03 vincentcomfy

Opening a new home tab isn't default behaviour anymore as far as I'm aware, the current new tab behaviour mimics Arc where opening a new tab opens a search box. Unless I'm misunderstanding your issue.

I know that. Double left-clicking on the sidebar/tab bar opens the search box, as it should, like typing Ctrl+T.

Middle-clicking on the sidebar/tab bar used to open a new home tab with the shortcuts grid (which is still the default behavior in Firefox). That was apparently removed in 1.7.5b, then introduced again but, instead of a new home tab, it loads the default search engine website with the most recent text in the clipboard.

Since this new middle-click behavior change wasn't mentioned in the release notes, I assume it's a bug, not a feature. And a privacy issue tbh.

belenos avatar Mar 23 '25 15:03 belenos

Closing this issue as part of a repo cleanup

Due to technical-debt we had in the past, we are currently clearing out old, duplicate, stale, and non-actionable issues to improve issue tracking and make it easier to focus on fixing real bugs.

If this issue is still relevant, please open a new issue using our updated issue template, which will help us categorize and address it more efficiently.

Thanks for your understanding and for helping us improve the project! 🚀

This issue can be reopened at: https://github.com/zen-browser/desktop/issues/new?template=bug_report.yml&title=Middle%20Click%20on%20Empty%20Space%20Immediately%20Searches%20in%20Default%20Search%20Engine%20the%20Clipboard%20Text%0A

mr-cheffy avatar Mar 29 '25 15:03 mr-cheffy