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

Issue 913043 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Clipboard not working - has old items

Project Member Reported by cjamcl@google.com, Dec 7

Issue description

Chrome Version: 71.0.3578.80 (Official Build) (64-bit)
OS: Mac OS X

What steps will reproduce the problem?
Unknown

What is the expected result?
Copying text from a program other than Chrome should be available when pasting inside Chrome. And vice versa.

What happens instead?

Sometimes, the clipboard for inside Chrome is seemingly detached from the OS's clipboard. Pasting text recently copied outside Chrome results in pasting of the last item Chrome copied. The same happens the other way around.

I've found that a Chrome restart fixes the issue. Also, copying something else in Chrome, then going back to the other program to copy the intended text, seems to fix the issue consistently. Will continue to do that when this comes up and report if it always fixes the issue.

For the external programs that this has occurred for me, I can recall: Sublime Text, iTerm 2, and Terminal. AFAIK I was just copying normal text. The issue is likely related to the certain types of content copied inside Chrome, although I have not noticed a pattern yet.

FWIW, this is not a new issue for me on Mac. I've seen this for probably at least 4 months now.

Please use labels and text to provide additional information.

clipboard, text, copy, paste
 
Description: Show this description
Owner: huangdarwin@chromium.org
Status: Assigned (was: Untriaged)
Thank you for the bug report. Will keep this in mind in case I can find repro steps.
Components: Blink>DataTransfer

Comment 5 by dpranke@chromium.org, Jan 18 (5 days ago)

Cc: erikc...@chromium.org pkling@google.com a...@chromium.org
My wife is reporting a variant of this problem as well. For her, it's pasting images from the clipboard (generated from screenshots via cmd-ctrl-shift-4) into new messages in gmail.

She's running Chrome 71.0.3578.98 on Mac OS 10.13.6.

I have briefly tried to repro it on my Mac (running the same version of Chrome on 10.14.2) with no luck, but she does this action constantly, so she has a lot more data points than I.

This sounds similar to bug 873497, which it looks like was resolved inconclusively; +erikchen, +avi, and +pkling from that bug.

pkling / cjamcl - can you check which version of the OS you're running? I'm going to have her upgrade to Mojave (I thought she was already running that) and see what happens.

Also, any tips / thoughts on what you might look for, debugging-wise, in case her computer gets into this state and I can poke at it?

Comment 6 by cjamcl@google.com, Jan 18 (5 days ago)

Thanks for the report! I'm able to replicate it now.

mac os version: 10.13.6

open textedit, type "TEST"
open chrome, go to google.com
take screenshot (cmd + shift + f4). seems any size works.
copy "google" from address bar
copy "TEST" from textedit
paste in chrome address bar

expected: "TEST" in address bar
actual: "google" in address bar

to get out of this state (simplest I could get it):

open another text editing program (not textedit. I used sublime). Type "TEST2"
copy the chrome address bar (full selection via a triple click)
paste in the text editing program
copy "TEST2" from the text editing program
can now paste "TEST2" in chrome



--- 

now, bad news (or good news, depends on your perspective). I think you can replicate this behavior across any two programs in OSX. Open up sublime and text edit, take a screenshot in one and copy some text, then paste in the other editor. It's almost like taking a screenshot creates a "fork" in OSX's clipboard, making each program have it's own state.

Comment 7 by huangdarwin@chromium.org, Jan 18 (4 days ago)

#6, Thank you for the repro steps.

Unfortunately, I'm unable to repro using them on macOS 10.13.6/Chrome 71.0.3578.98 while using either cmd+c/cmd+v or right-click>copy/paste to copy/paste. I'm using cmd+shift+4 (instead of f4) to take a screenshot though, if that makes a difference, since that's how the touchbar mac takes screenshots.

I have tried repro'ing this between VSCode and textEdit as well, with no luck.

Comment 8 by cjamcl@google.com, Jan 18 (4 days ago)

I have the same Mac, and was actually doing cmd + shift + 4 like you. Also Chrome 71.0.3578.98.


A friend was able to repro. He has the same version of Chrome and OSX.

Comment 9 by huangdarwin@chromium.org, Jan 18 (4 days ago)

I've been able to repro now, through using cmd+shift+ctl+4 to take a screenshot (still can't repro via cmd+shift+4). Including ctl for the screenshot puts the screenshoted image onto the clipboard, and seems to "fork" the OSX clipboard, as you mentioned. After the screenshot+copy, these 2 programs only see items copied from the same application.

Comment 10 by cjamcl@google.com, Jan 19 (4 days ago)

Apologies to my lack of attention to detail. It is only cmd+shift+ctl+4 that repros. I typed the shortcut from memory, but it turns out it's really just in my muscle memory :)

Comment 11 by huangdarwin@chromium.org, Jan 19 (4 days ago)

No worries. Thank you for providing the repro. :)

Sign in to add a comment