I just happen to be looking at clipboard code for page contents. Here's the code for writing a URL:
void WebClipboardImpl::writeURL(const WebURL& url, const WebString& title) { ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); scw.WriteBookmark(title, url.spec()); scw.WriteHTML(UTF8ToUTF16(URLToMarkup(url, title)), ""); scw.WriteText(UTF8ToUTF16(url.spec())); } Notice how we write it as HTML here. I'm not sure under what conditions we end up in that method though. Selecting a link on a page and pressing control-c ends up here: void WebClipboardImpl::writeHTML( const WebString& html_text, const WebURL& source_url, const WebString& plain_text, bool write_smart_paste) { ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); scw.WriteHTML(html_text, source_url.spec()); scw.WriteText(plain_text); if (write_smart_paste) scw.WriteWebSmartPaste(); } -Scott On Fri, Jul 31, 2009 at 1:36 PM, Evan Stade<est...@chromium.org> wrote: > > I have a feeling you are talking about the render view, and you should > be asking these questions 'round webkit way > > -- Evan Stade > > > > On Fri, Jul 31, 2009 at 12:34 PM, Peter Kasting<pkast...@google.com> wrote: >> On Fri, Jul 31, 2009 at 12:00 PM, ptr727 <pieter.vilj...@gmail.com> wrote: >>> >>> To summarize, in Chrome copying the URL from the UI is not the same as >>> right click copy link. >> >> By "copying the URL from the UI" do you mean copying the URL from the >> Omnibox? Or copying from the webpage contents, using ctrl-c? >>> >>> Right click copy link works fine because it does not contain HTML >>> formatted text. >> >> Does highlighting the link and copying do the same thing? >> PK >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---