New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 679388 link

Starred by 5 users

Issue metadata

Status: Duplicate
Owner: ----
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Paste with center-click doesn't work on linux

Project Member Reported by whesse@chromium.org, Jan 9 2017

Issue description

It looks like when the highlighting is turned off for the primary selection, due to a click in the same tab, the selection is also erased from PRIMARY (if that is what the selection clipboard is called in linux).

Chrome Version: (copy from chrome://version)
57.0.2970.0 (Official Build) dev (64-bit)
OS	Linux 
JavaScript	V8 5.7.376
Flash	24.0.0.194
Command Line	/usr/bin/google-chrome-unstable --user-data-dir=/usr/local/google/home/whesse/.config/google-chrome-unstable --flag-switches-begin --flag-switches-end
Executable Path	/opt/google/chrome-unstable/google-chrome-unstable

OS:  Linux Ubuntu 14.04 internal version.

What steps will reproduce the problem?
(1) Select text in a gmail window
(2) center-click in an edit window on the same page
(3) No text is pasted

 (4) select text
 (5) hit ctrl-c
 (6) click in an edit window and hit ctrl-v
 (7) the text is pasted

 (8) select text in a different tab or window
 (9) center-click in an edit box in gmail
 (10) the text is pasted

 (11) select text in the gmail tab
 (12) select text in another tab
 (13) center-click in an edit box in gmail
 (14) the text is not pasted

  Other experiments show that whenever selected text loses its highlighting, the selected text disappears from the clipboard and cannot be pasted with a center click.




 
The effect can be verified by running the xclip -o command in another window.
When text is selected in Chrome, either with a mouse drag or with shift-arrow, it appears on the clipboard.  When the selection is lost, either with a mouse click or an unshifted arrow key in a text edit box, the contents disappear from the clipboard.

Needless to say, this is incorrect, and the contents should remain on the clipboard until a new selection is created.
Labels: -Type-Bug Type-Bug-Regression
Status: Available (was: Untriaged)
Summary: Paste with center-click doesn't work on linux (was: PRIMARY selection in linux is lost when highlighting disappears)
I reproduced as more simple regression:
<textarea >foo</textarea>

1. select 'foo'
2. center-click on 'foo'

Expected:
 foofoo 

Actual:
 foo
Cc: anan...@chromium.org
Anantha, could you bisect on linux about #2?
Stable 55.0.2883.87 : Good
Canary 57.0.2979.0: Bad

Comment 4 by whesse@chromium.org, Jan 24 2017

The problem is still there in Canary 57.0.2986.0: Bad.
Version 56.0.2924.87: Good
Mergedinto: 688637
Status: Duplicate (was: Available)

Sign in to add a comment