Browser-laptop: Clipboard copy (cmd+c / ctrl+c) doesn't always work

Created on 17 Aug 2017  ·  32Comments  ·  Source: brave/browser-laptop

Test plan

  1. Use Brave for a while
  2. Try to copy / paste using cmd+c (or on Windows ctrl+c)
  3. Make sure that clipboard gets updated

  • Did you search for similar issues before submitting this one?
    yes

  • Describe the issue you encountered:
    If you're on a webpage and you do cmd+c (or ctrl+c) to copy something, it doesn't always work (most of the time it does work). Nothing is copied (clipboard contents remain unchanged). However, if you right click and choose "copy" from the menu, it works fine.

We had fixed this in the past by reverting this commit:
https://github.com/brave/browser-laptop/commit/6df066ca4e4bcc600fdd7a76d087bcd39536c6b0

However, reverting this introduces a problem where the copy works... but it copies the URL instead of the

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    macOS

  • Brave Version (revision SHA):
    0.18.23

  • Steps to reproduce:

    1. Use Brave for a while
    2. Try to copy / paste using cmd+c (or on Windows ctrl+c)
    3. Be disappointed when it doesn't update clipboard. The previous contents are there
  • Actual result:
    Clipboard gets updated

  • Expected result:
    Nothing happens to clipboard

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?

  • Is this an issue in the currently released version?
    yes

  • Can this issue be consistently reproduced?
    No

  • Extra QA steps:
    1.
    2.
    3.

  • Screenshot if needed:

  • Any related issues:
    cc: @bbondy who has also seen this and @NejcZdovc who reports a similar issue

Qchecked-Linux Qchecked-Win64 Qchecked-macOS Qtest-plan-specified bug misclipboard prioritP1 release-noteinclude

Most helpful comment

Pulling into 0.19.x as this is a really nasty issue

All 32 comments

+1 from community - user noted that it happens when Brave is open for awhile. https://community.brave.com/t/unable-to-copy-from-address-bar/5999

I can reproduce on Linux.

  • Describe the issue you encountered:
    same as @bsclifton
    This issue would be fine when I reboot Brave.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    OS X El Capitan (10.11.6)

  • Brave Version (revision SHA):
    36ae2ec

  • Actual result:
    Clipboard gets updated

  • Expected result:
    Nothing happens to clipboard

  • Is this an issue in the currently released version?
    Yes and this issue exist since I installed Brave fist time. I guess my first version was 0.11.4
    I did not notice 6df066c

+1 from community https://community.brave.com/t/basic-keyboard-shortcuts-like-copy-and-paste-do-not-work/6357?u=eljuno

Basic keyboard shortcuts that are universal on all platforms dont work at all in brave

Pulling into 0.19.x as this is a really nasty issue

I also have a similar issue where ctrl+c works but right click copy does not. Kind of sporadic
windows
36ae2ec

+1

I just tried copying someone's email address from a webpage, and when I go over to my email client and do cmd-v to paste, the value is the previous item I had copied... I try cmd-c over and over and over, I see the edit menubar tab flash, but yet the value is not actually getting copied.

I'm not 100% sure, but it would be worth trying this out next time you all experience the issue. Close the browser, re-open and then try again. If that works, then I suspect I know the root cause.

After 10 minutes of a tab being idle, it will automatically be suspended. If it becomes active again, it should work as expected. However, I suspect the code has a reference to the old web contents

cc: @bridiver

I can say that the last time this happened, it was definitely tab specific. I remember I had gone to a youtube video and was trying to contact the content creator, but I could not copy their address from that page... I switched tabs and could copy/paste just fine.. and then going back to the youtube tab, again I could not copy... After quitting Brave and relaunching, I went back to that same youtube channel and was able to copy their address.

@patrick99e99 awesome! thanks for confirming 😄 The feature I described above (which I had forgot the name of) is tab discarding

@darkdh would you have time to help me with this one?

Still having issues with right click copy in ddfddfb

image

My command + C is not working to copy on a Mac, but works if I right click and copy (which of course is a PITA).

Marking as macOS after testing on Windows for about an hour (and unable to reproduce)

@ricardosaracino are you specifically having problems with Ctrl + C in the URL bar? or are you using right click > Copy?

edit: re-reading, you're having problems with right click + copy. Is it only with the URL bar? or also with the content on the page?

I pulled the trigger too fast on the OS/macOS label

@jonathansampson and @lukemulks both report issues- will ask for more specific information

This also affects me on Windows, intermittently. I often have to copy the URL via the devtools by running copy(location.href) from the console. While Brave has copy/paste issues, I have never run into any issues copying via the copy method in the developer tools' console.

100% reproducible steps

Scenario 1

  1. Right click any tabs to open a context menu
  2. Make the context menu disappeared by clicking options or elsewhere
  3. Go to any tabs
  4. You will find out each cmd+c will only copy url of the current tab

Scenario 2

  1. Select and copy some text on a tab
  2. Right click any tabs to open a context menu
  3. Make the context menu disappeared by clicking options or elsewhere
  4. You will see every cmd + c will be the text in step 1
  5. cmd +c on any URL bar
  6. You will find out each cmd+c will only copy url of the current tab

How to break the curse

  1. relaunch Brave
  2. make context menu in webview showed up and close

Steps by @darkdh do not repro on Windows unfortunately- but easily repro on macOS

Also can't reproduce with those steps on Linux (Ubuntu 14.04)

I have had a few updates since my last post, i havent had clipboard issues for a while now.

I experienced the same situation plus the weird middle-click-insert under linux does not work as expected. Ref: #10791
Still in 0.18.32

You mean, it will be solved soon?
Thanks.

@pongraczi it should be solved in 0.19.x version

to be specific, the solution is available in 0.19.20 and above.
You can download the beta release here https://github.com/brave/browser-laptop/releases

Select text with mouse inside the browser, and middle click somewhere else (text editor for example) still sucks with this issue. It pastes from the normal clipboard.
So, middle click is still not reliable.

Brave: 0.19.23
rev: 7941690ada962e67f7881c442ca4fec533a9f699
Muon: 4.4.25
libchromiumcontent: 61.0.3163.100
V8: 6.1.534.41
Node.js: 7.9.0
Update Channel: Beta
OS Platform: Linux
OS Release: 4.11.0-14-lowlatency
OS Architecture: x64

Probably the middle click issue should continue here: #10791

https://community.brave.com/t/copy-paste-still-broken-in-0-19-48/9008

Copy/paste is still broken in Brave 0.19.48 Brave: 0.19.48 rev: de939f6dcd1647f43de544b22dfdd103585b4ec2 Muon: 4.4.28 libchromiumcontent: 61.0.3163.100 V8: 6.1.534.41 Node.js: 7.9.0 Update Channel: Release OS Platform: macOS OS Release: 16.7.0 OS Architecture: x64 There was an existing issue about this subject here Right click Copy and Paste doesn't always work1 but this has been closed prematurely. Trying to copy selected text by pressing Cmd-C often does not work first time. I usually have to select “copy” from the right-click menu. Only then does Cmd-C work for subsequent copy/paste actions. This error seems to be specific to each browser tab

@luixxiul pls track that in a new issue, I think the problem is a second similar problem in terms of side effects, but it is a distinct bug

10791 ?

I still have this issue....

Brave: 0.19.50
rev: 5e2c26a14881662b553e0239103ea674fda8ac6a
Muon: 4.4.28
libchromiumcontent: 61.0.3163.100
V8: 6.1.534.41
Node.js: 7.9.0
Update Channel: Beta
OS Platform: Linux
OS Release: 4.11.0-14-lowlatency
OS Architecture: x64

I started using brave last week and this bug is still there. Steps to reproduce given by @darkdh : working!
my OS : Kali linux (Debian)

Brave: 0.21.24
V8: 6.5.254.36
rev: 19c78a1624118e344852c4c0f44c0d45be841b5f
Muon: 4.9.3
OS Release: 4.13.0-kali1-amd64
Update Channel: Release
OS Architecture: x64
OS Platform: Linux
Node.js: 7.9.0
Brave Sync: v1.4.2
libchromiumcontent: 65.0.3325.162

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonathansampson picture jonathansampson  ·  3Comments

mykkymk picture mykkymk  ·  3Comments

bsclifton picture bsclifton  ·  3Comments

lukemulks picture lukemulks  ·  3Comments

jonathansampson picture jonathansampson  ·  3Comments