Closed Bug 1633203 Opened 4 years ago Closed 10 months ago

Triple-clicking or selecting all on Linux should always copy to the primary selection

Categories

(Firefox :: Address Bar, defect, P3)

75 Branch
defect
Points:
2

Tracking

()

RESOLVED DUPLICATE of bug 1333161
Tracking Status
firefox-esr68 --- unaffected
firefox75 --- wontfix
firefox76 --- wontfix
firefox77 --- fix-optional

People

(Reporter: mkpdev, Unassigned)

References

(Regression)

Details

(Keywords: papercut, regression, Whiteboard: [snt-scrubbed][search-papercut])

User Story

Explicit user actions to select text like CTRL+A or triple-click should populate the primary clipboard on Linux, regardless of the initial status of the text (selected or deselected).
We currently do this in most cases, but when the text is already selected, selecting it again doesn't do it.

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

Steps to reproduce:

Click urlbar to select all

  1. Middle-click elsewhere

Triple-click urlbar (but if you're a little slow, it can take 5 or more clicks) or
2. Middle-click elsewhere

Select urlbar and press Ctrl+A (like works literally anywhere else in the browser)
3. Middle-click elsewhere

Actual results:

  1. Paste buffer from some other page or program
  2. Paste URL
  3. No joy

Expected results:

  1. Paste URL
  2. Also paste URL
  3. And again

This worked in Firefox 74

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

Component: Untriaged → Address Bar

(In reply to M. Kristall from comment #0)

Click urlbar to select all

  1. Middle-click elsewhere

This is working as intended, we don't copy the string to the primary selection on programmatic selection (thus a selection done by the product, not done by the user)

Triple-click urlbar (but if you're a little slow, it can take 5 or more clicks) or
2. Middle-click elsewhere

This should work now, as expected.

Select urlbar and press Ctrl+A (like works literally anywhere else in the browser)
3. Middle-click elsewhere

This should probably work, because it's a further selection, we should look into supporting it. Probably doesn't work because the text is already selected, so CTRL+A doesn't go through.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Regressed by: 333714
Has Regression Range: --- → yes

(In reply to Marco Bonardo [:mak] from comment #2)

(In reply to M. Kristall from comment #0)

Click urlbar to select all

  1. Middle-click elsewhere

This is working as intended, we don't copy the string to the primary selection on programmatic selection (thus a selection done by the product, not done by the user)

  1. The selection is made in direct response to a user action so I'm not quite sure your reasoning really holds up for why that is not a bug.
  2. It used to work but now it does not and requires extra effort to accomplish the same thing. That is a regression, whether intentional or not.

Set release status flags based on info from the regressing bug 333714

Summary: clipboard.autocopy does not work right with urlbar starting in Firefox 75 → clipboard.autocopy does not work when trying to select an already selected urlbar

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3
Summary: clipboard.autocopy does not work when trying to select an already selected urlbar → Allow to set the primary selection by selecting an already selected urlbar

(In reply to M. Kristall from comment #3)

  1. The selection is made in direct response to a user action so I'm not quite sure your reasoning really holds up for why that is not a bug.

I agree with this, and moreover this is how it worked on X since the Netscape days, having changed only within the last few releases.

I am also confused by this inovative URL bar selection behavior and it caused me a lot of paste errors inlcuding pasting private keys instead the URL I meant to copy to public places. If the text is selected, it should be copied into the primary selection.

Please also see/vote on https://bugzilla.mozilla.org/show_bug.cgi?id=1653191 for a similar discussion.

Blocks: 1653191
Keywords: papercut
Points: --- → 2
Summary: Allow to set the primary selection by selecting an already selected urlbar → Triple-clicking or selecting all on Linux should always copy to the primary selection
Whiteboard: [snt-scrubbed][search-papercut]
User Story: (updated)
Duplicate of this bug: 1653191
Status: NEW → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1333161
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.