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

Issue 695568 link

Starred by 11 users

Issue metadata

Status: Verified
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug-Regression

Blocked on:
issue 700163



Sign in to add a comment

hterm: cannot copy text to clipboard

Project Member Reported by wfh@chromium.org, Feb 23 2017

Issue description

Chrome Version: 58.0.3021.0 (Official Build) canary (64-bit)
OS: Win 10
Secure Shell version 0.8.34.4

What steps will reproduce the problem?
(1) Use secure shell to remote to something
(2) Copy text by dragging on it and stopping dragging until "Selection Copied" appears
(3)

What is the expected result?

Text copied to clipboard.

What happens instead?

Text is not copied to clipboard.

Please use labels and text to provide additional information.

This was working in a previous canary, probably on a few days ago.
 

Comment 1 Deleted

Comment 2 by wfh@chromium.org, Feb 23 2017

Cc: yuryu@chromium.org pkotw...@chromium.org mwro...@opera.com yosin@chromium.org
adding some random recent clipboard CL authors while I bisect this.

Comment 3 by wfh@chromium.org, Feb 23 2017

Cc: -pkotw...@chromium.org -yuryu@chromium.org -yosin@chromium.org tkent@chromium.org
Components: Blink>Editing>Command
Owner: yosin@chromium.org
Status: Assigned (was: Untriaged)
You are probably looking for a change made after 451715 (known good), but no later than 451716 (first known bad).
CHANGELOG URL:
The script might not always return single CL as suspect as some perf builds might get missing due to failure.
  https://chromium.googlesource.com/chromium/src/+log/2f16bd68bd7e191db66f96d2c761017902074d91..7afbab0f7619c89aa7a5896024d1628a59cc0ef1

https://codereview.chromium.org/2685723005 -> mwrobel@opera.com or yosin, can you take a look at this regression? Should I just revert?

Comment 4 by yosin@chromium.org, Feb 24 2017

Status: WontFix (was: Assigned)
The CL mentioned in #c3 makes Blink the spec conformance[1]. Thus, we don't want to
revert this.

Could you change hterm implementation to follow the spec?


[1] https://w3c.github.io/clipboard-apis/#to-fire-a-clipboard-event

Comment 5 by wfh@chromium.org, Feb 27 2017

Cc: -vapier@chromium.org yosin@chromium.org
Components: -Blink>Editing>Command
Owner: vapier@chromium.org
Status: Assigned (was: WontFix)
Please don't wontfix a bug as it will never get actioned if you do that.

vapier - what do you think here? Can hterm be fixed?

Comment 6 by wfh@chromium.org, Feb 27 2017

Labels: -OS-Windows ReleaseBlock-Beta
When this hits later channel, a lot of people are going to get frustrated, so marking RB-Beta.

Comment 7 Deleted

Comment 8 by dcheng@chromium.org, Feb 28 2017

Cc: bsittler@chromium.org mschilder@chromium.org
 Issue 697179  has been merged into this issue.

Comment 9 by dcheng@chromium.org, Feb 28 2017

Issue 697136 has been merged into this issue.
We can fix hterm but do we have any research into other apps that depended on the previous noncompliant behavior? I don't see an intent thread on blink-dev related to this change.

Comment 11 by wfh@chromium.org, Mar 1 2017

Labels: -Pri-2 Pri-1
that Chromium commit & referenced bug is pretty light on details as to what it actually changed.  frankly, the commit message there is just terrible.

playing around with new versions & old versions, it looks like the issue is that our registered 'copy' event is now fired when we call document.execCommand('copy') where it wasn't previously.  this leads to an infinite loop where our event handler indirectly calls document.execCommand('copy') which triggers the event handler which ...

if you guys go into the SecureShell options page and set use-default-window-copy to true, does that fix things ?

Comment 13 by wfh@chromium.org, Mar 2 2017

re: #12 - setting "use-default-window-copy" to true makes copy work again in Secure Shell 0.8.34.4 on Chrome Canary 58.0.3028.0
I can repro in guest mode *without* the secure shell extension.

When we invoke a standard ctrl + alt + t shell, the same no copy/paste behavior occurs.
crosh/SecureShell both use hterm, so it's expected they'd behave the same

the workaround is the same too since they also share the options page
Please add the OSs that this is applicable to.  Thanks!

Comment 17 Deleted

 Issue 698932  has been merged into this issue.

Comment 19 by ajha@chromium.org, Mar 7 2017

Just to update, M-58 probably will be promoted to Beta next week, since this is marked as Beta blocker please plan the fix accordingly.
I had a similar issue. I found a work around in the settings of my chromebook.

1) Open a crosh shell
2) CTRL + Shift + P
3) Scroll down to the "Copy & Paste" section
4) Make sure all items are checked
5) Scroll down to "Keyboard"
6) Check the boxes for "ctrl-c-copy" and "ctrl-v-paste"

This fixed my issue and enabled me to use the CTRL+C and CTRL+V in my shell sessions.
What is our next step here? It sounds like we need a new spin of Hterm or a change to the default settings for it?

We need this soon if we are to promote 58 and we continue to consider this a blocker.
Blockedon: 700163
i wasn't planning on making a change to hterm/Secure Shell since the Chromium change has been reverted in  issue 700163 .  i don't know if they were going to cherry pick that back to M58 though ... i'll follow up to that bug.

for M58 right now, there is an easy workaround, but you have to know to do it first ...
A friendly reminder that M58 beta Promotion is scheduled on 03/16 and RC cut on 03/15( Wednesday). Please make sure to land the fix and get it merged into the release branch ASAP.

Comment 24 by l...@chromium.org, Mar 15 2017

Also tracked in  crbug.com/700163 , the revert was cherry picked into M58 here: https://codereview.chromium.org/2745353002/

All we need now is just to verify that this behavior is fixed on M58 beta.

Comment 25 by l...@chromium.org, Mar 15 2017

Status: Fixed (was: Assigned)
I've verified that copying text in Secure Shell works on Linux 59.0.3041.0 and Mac 59.0.3042.0, so we can mark this as fixed.

My merge CL was landed (Tue Mar 14 03:44:52 2017) slightly after the last Dev channel release (Tue Mar 14 00:02:12 2017).  It should appear on Dev channel the next time they update it.
Labels: Merge-TBD
[Auto-generated comment by a script] We noticed that this issue is targeted for M-58; it appears the fix may have landed after branch point, meaning a merge might be required. Please confirm if a merge is required here - if so add Merge-Request-58 label, otherwise remove Merge-TBD label. Thanks.
Labels: -Merge-TBD
Status: Verified (was: Fixed)
Verified Chrome OS version 58.0.3029.31/934.18.0 kevin
 Issue 702254  has been merged into this issue.

Comment 31 Deleted

Sign in to add a comment