New issue
Advanced search Search tips

Issue 851473 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

paste copied url from safari ios through handoff to mac is empty in web content

Reported by bruno.on...@gmail.com, Jun 11 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Steps to reproduce the problem:
1. open safari
2. click to center bottom arrow up
3. click to copy icon
4. paste in chrome address bar works
5. paste in chrome element contenteditable is clipboardData empty

What is the expected behavior?
clipboardData have to have copied object - url, image

What went wrong?
clipboardData is empty - probably not converted object through chrome 

Did this work before? N/A 

Chrome version: 66.0.3359.181  Channel: stable
OS Version: OS X 10.13.5
Flash Version: 

bruno.onlyme@gmail.com
 
Screen Shot 2018-06-11 at 4.51.45 PM.jpg
83.9 KB View Download

Comment 1 by junov@chromium.org, Jun 11 2018

Components: -Blink UI>Browser>Mobile
Labels: Needs-Milestone
Cc: susan.boorgula@chromium.org
Labels: Needs-Feedback Triaged-ET
bruno.onlyme@ Thanks for the issue.

Can you please confirm if this issue is related to ios or Mac OS ?

Thanks..
this issue is related to ios or Mac OS
related to "macos" - because "macos chrome" process the data to "url input" but no into "javascript"


I tested it more
+ macos chrome --- url yes - js no
+ macos safari --- url yes - js no
+ macos firefox --- url no - js no
+ macos opera --- url no - js no
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 13 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I tested it now - paste copied link through "ios safari more button" and paste content in "ios safari contenteditable" in the same device - and it doesn't work either.

So I thinking that "paste on chrome url input" is some kind "macos input fields behaviour". At the same time I believe it could be pass into javascript object somehow.

Q what do you think?
Labels: Needs-Feedback
Thanks for your report. I'm afraid I don't understand your repro steps. Can you attach a screencast? You can make one using QuickTime's screen recording feature.
I tested it more carefully. That was my some mistake. Therefore I don't attach video.


Copy from "mobile safari more button" and paste into "mobile safari html contenteditable" works - OK.

Copied object on "mobile safari more button" pasted "through handoff" into "macos chrome url bar input" works - OK.

Copied object on "mobile safari more button" pasted "through handoff" into "macos chrome html contenteditable" do not works - NOK.


So origin issue - see attachments "safari img01, chrome img02".
Screen Shot 2018-06-15 at 4.11.01 AM.jpg
127 KB View Download
Screen Shot 2018-06-15 at 4.10.41 AM.jpg
73.4 KB View Download
Project Member

Comment 9 by sheriffbot@chromium.org, Jun 15 2018

Cc: ellyjo...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Thanks for following up. I still don't quite understand your repro steps - can you please attach a video?

Comment 11 by sdy@chromium.org, Jun 26 2018

Components: -UI>Browser>Mobile Blink>Editing>Paste Internals>PlatformIntegration
Status: Untriaged (was: Unconfirmed)
Summary: paste copied url from safari ios through handoff is empty in web content (was: paste copied url from safari ios through handoff is empty in )
[Mac triage] I was able to repro this and attached a screen recording. The issue shows up around the :30 mark. If I copy regular text on my phone and then try to paste it into a textarea on my Mac, it works. If I do that with a URL, no luck (but it works in UI like the omnibox.
crbug_851473.mp4
5.4 MB View Download
nice video preview - that's exactly the problem :-)
Components: -Blink>Editing>Paste
Labels: -OS-Mac OS-iOS
Summary: [iOS] paste copied url from safari ios through handoff is empty in web content (was: paste copied url from safari ios through handoff is empty in web content)
It seems this is issue in Chrome iOS.

It works fine on desktop Safari and Chrome.
Cc: stkhapugin@chromium.org justincohen@chromium.org rohitrao@chromium.org
Added a few others on Chrome iOS team for input.
Labels: -OS-iOS OS-Mac
The issue is not in Chrome iOS, the repro steps and video don't even mention it. 

Since URLs copied from either Safari iOS or Chrome iOS show up in the address bar, I suspect that handoff only passes the NSURL clipboard object when the clipboard contains both a URL and a string; then Chrome on Mac doesn't paste it into the content area. Perhaps the content area tries to get kMimeTypeText clipboard contents, which is empty in this case? 
Owner: a...@chromium.org
Status: Assigned (was: Untriaged)
Summary: paste copied url from safari ios through handoff to mac is empty in web content (was: [iOS] paste copied url from safari ios through handoff is empty in web content)
Mac triage: to avi@ for investigation
sdy, since you can repro, can you paste into the PasteboardPeeker, and copy and paste the results from that? I'm curious as to what flavors are on the paste.
PasteboardPeeker.zip
13.1 KB Download

Sign in to add a comment