New issue
Advanced search Search tips

Issue 840182 link

Starred by 4 users

Issue metadata

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



Sign in to add a comment

URL-only flavours are ignored by omnibox paste

Project Member Reported by rjkroege@chromium.org, May 6 2018

Issue description

Chrome Version: 68.0.3418.2 (Official Build) dev (64-bit)
OS: MacOS

What steps will reproduce the problem?
(1) copy a URL in a MacOS app that (conceivably incorrectly) provides valid (i.e. URL bearing) pasteboard flavours for

* public.url (WebURLsWithTitlesPboardType)
* public.url-name (Apple URL pasteboard type)
* NSLinkStringPboardType

but an empty string for

* NSStringPboardType / public.utf8-plain-text

(2) paste it in the omnibar

What is the expected result?

The URL string should appear in the omnibar

What happens instead?

No URL string appears in the omnibar.

I hypothesize that we are reading only the NSStringPboardType from the pasteboard and not checking if there is one of the other URL-specific flavours. We should probably check if public.url flavour is an URL? Safari does the right thing here and inserts this pasteboard flavour into the URL bar.




 

Comment 1 by lgrey@chromium.org, May 7 2018

Cc: sdy@chromium.org
Status: Available (was: Untriaged)
+sdy@ who was working on something glancingly similar a while back

Sign in to add a comment