Closed Bug 1644078 Opened 4 years ago Closed 4 years ago

Search Bar single click selects text and does not copy to clipboard

Categories

(Firefox :: Search, defect)

77 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1621570

People

(Reporter: kpfkkpfk, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0

Steps to reproduce:

Clicked in search bar.

Actual results:

All text was selected but not saved in the Linux clipboard.

Expected results:

Cursor should have been inserted in text. Despite the text being selected on single click it was not saved to the Linux clipboard

I can confirm this bug, and came to file it. It seems similar to https://bugzilla.mozilla.org/show_bug.cgi?id=226853 which was filed and fixed years ago.

To state the problem with more detail:

Clicking once in the URL bar selects (highlights) the URL text that is in the URL bar. Highlighted text, on Linux, should be copied to the PRIMARY clipboard so it's available for middle-click paste into other appllications. This does not happen in Firefox 77 on Ubuntu 18.04.

I am pretty sure that this used to work, so I think this is a regression. It is not peculiar to Fx 77; it's been going on for longer than that, but unhelpfully I'm not sure how long; sorry.

Triple clicking the URL bar selects, unselects, and reselects the URL, and this time it is copied to the PRIMARY selection. However, muscle memory is working against that.

In about:config, clipboard.autocopy is set to true (which seems to be the default), and browser.urlbar.clickSelectsAll does not seem to exist as a setting at all (it is not present and there is no default value).

This is a Linux-specific bug, I imagine (since only Linux has a PRIMARY selection at all).

I started this bug report but Bugzilla will only let me login after I create an account. It will not let me in after that. So I'm forced to make a completely new user account every time I want o contribute.

For the record, new FF policy is to completely remove the 'single-click inserts cursor' function in favor of being like everyone else, which is 'single-click' highlights all text but does not copy to the Linux middle-click clipboard. You have to highlight the text twice to copy to middle-click clipboard. Having said all that, It is only supposed to affect the URL bar, not the search bar. The search bar should work as originally intended, but alas, it does not. I understand the reason why FF removed this function as it was explained in another bug report, but the change does not mention it affecting the search bar.

Ah, my report is about the URL bar. Can you direct me to the other bug which explains why click-once-to-highlight does not copy to the primary middle-click clipboard? I did search but was unable to find that.

It's in this thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1621570
You might have to expand some of the comments to get the whole picture. It's spread out throughout the page. Look for responses by Marco Bonardo, including before and after his responses.

Why is this still unconfirmed?

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Search

Although the search bar is a different element to the address bar, we still make them have generally the same behaviour with regards to selecting text. Therefore I'm marking this as a duplicate of bug 1621570.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

A couple of month in, that bug #1221570 is still totally unbearable. You said that you will ask for more feedback from users, but the bug doesn't accept anymore. How do you want to get them?

Still: please, make that behaviour configurable. Let user have a click in URL set the mouse cursor, not select everything.

You may want to check out this workaround which is a shell script that forces clickSelectsAll = false behavior.

@sebastian: THANK YOU SO MUCH

This bug also works the other way round:

  • Click the URL-Bar
  • The text is selected
  • Insert Text with middle click
  • The Text is inserted not replacing the selected text

If you want to select all so it is faster to replace the URL, you need to make it work with pasted URLs as well.

For copying: When you force the select all, it would be bad to copy it to X11 clipboard, as you often want to type an URL without losing clipboard contents.
I think this should be reverted to the old behaviour (double click selects all).

I want to mention that I am observing the exact behavior described in this bug report in Firefox 103.0.

About Firefox
92.0 (64-bit)
Mozilla Firefox for Arch Linux
archlinux - 1.0

You need to log in before you can comment on or make changes to this bug.