Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Safari+Messages - Copying text puts comment tags in clipboard #7106

Closed
amitava82 opened this issue Jun 23, 2016 · 7 comments
Closed

Bug: Safari+Messages - Copying text puts comment tags in clipboard #7106

amitava82 opened this issue Jun 23, 2016 · 7 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@amitava82
Copy link

amitava82 commented Jun 23, 2016

This is reproducible in OSX + Safari + Mac Messages app using React 15.1.0

  • Run the example fiddle: https://jsfiddle.net/reactjs/69z2wepo/ in Safari
  • Copy Hello World by triple clicking on the text.
  • Paste the text in Messenger app. It will paste Hello /react-text react-text: 3 World in the chat window.
  • Pasting the same clipboard content elsewhere outputs Hello World (this bug report composer for example).
@jimfb
Copy link
Contributor

jimfb commented Jun 23, 2016

Which messenger app? I tested on facebook.com, messenger.com, and our internal messenger app - everything looked fine and I was unable to reproduce. I also tried on my android with chrome+messenger, again unable to reproduce.

Are you referring to the iOS app? Are you testing on your phone? Can you upload a screencast to youtube or something?

@jimfb
Copy link
Contributor

jimfb commented Jun 23, 2016

My web tests were using Safari Version 9.1.1 (10601.6.17).

@jimfb jimfb added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Jun 23, 2016
@amitava82 amitava82 changed the title Bug: Safari+Messenger - Copying text puts comment tags in clipboard Bug: Safari+Messages - Copying text puts comment tags in clipboard Jun 23, 2016
@amitava82
Copy link
Author

Sorry, it is the Mac Messages app https://www.apple.com/support/mac-apps/messages/ & Safari Version 9.1.1

Here is a screencast (using different react app but same issue) https://www.dropbox.com/s/8dx721ln2168h31/issue.mov?dl=0

@zpao
Copy link
Member

zpao commented Jun 23, 2016

I'll look a little bit more closely when I'm at a computer but I'm 99% sure you actually want to be filing a bug against Apple. We do not control Safari's clipboard implementation. You should be able to repro outside react with a complex enough DOM making use of HTML comments (since that's all that's happening)

@zpao
Copy link
Member

zpao commented Jun 23, 2016

I guess it could also be Messages paste implementation. Clipboards are fun. There's basically some data there in multiple formats and when pasting you get to decide which format you'll read from. Messages may be reading one format but Safari another (perhaps why you can paste into a textarea fine but not Messages input)

@amitava82
Copy link
Author

Yeah I thought so. Seems to be an Apple issue.

@zpao
Copy link
Member

zpao commented Jun 23, 2016

I filed a bug against apple so we'll see if they do anything about it (26982554 if anybody can even access those). Thanks for letting us know!

@zpao zpao closed this as completed Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

3 participants