Bug 57107 - Pasteboard data's RTF data doesn't always include URLs via NSLinkAttributeName
Summary: Pasteboard data's RTF data doesn't always include URLs via NSLinkAttributeName
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-03-25 11:08 PDT by Enrica Casucci
Modified: 2011-03-25 11:48 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.30 KB, patch)
2011-03-25 11:18 PDT, Enrica Casucci
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2011-03-25 11:08:12 PDT
Depending on the range of the selection in a web page, WebKit sometimes doesn't include the URL for the selected text in the RTF representation using NSAttributeString's NSLinkAttributeName.

* STEPS TO REPRODUCE
1. Open TextEdit.  We'll use this as a simple way of inspecting the NSPasteboard's contents.
2. Open an web page with links: http://www.nytimes.com/2011/03/04/world/africa/04president.html?hp in Safari
3. Right-click on the 'President Obama' link, then hit 'escape' to dismiss the menu.  You should have JUST the text 'President Obama' (which is all one link) selected. Copy it and Paste it into TextEdit
4. Notice that your text has the expected style (blueish, underlined), but it does NOT contain the actual link!
Comment 1 Enrica Casucci 2011-03-25 11:16:40 PDT
<rdar://problem/9084267>
Comment 2 Enrica Casucci 2011-03-25 11:18:10 PDT
Created attachment 86960 [details]
Patch
Comment 3 Enrica Casucci 2011-03-25 11:48:36 PDT
http://trac.webkit.org/changeset/81974