Bug 81412

Summary: REGRESSION (r107435) Copy a link and paste to Mail: nothing is pasted
Product: WebKit Reporter: Brady Eidson <beidson>
Component: HTML EditingAssignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: jeremyhu
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: All   
Attachments:
Description Flags
Patch v1 - Fix plus API test ggaren: review+

Description Brady Eidson 2012-03-16 14:51:37 PDT
REGRESSION (r107435) Copy a link and paste to Mail: nothing is pasted

Before 107435:
NSURL *URL = [NSURL URLFromPasteboard:m_pasteboard.get()];

After 107435:
NSURL *URL = [NSURL URLWithString:platformStrategies()->pasteboardStrategy()->stringForType(NSURLPboardType, m_pasteboardName)];

The data format for the Apple URL pasteboard type is an XML plist and the URLFromPasteboard API is the only way to be guaranteed to be able to parse it.

Patch forthcoming.

In radar as <rdar://problem/11027997>
Comment 1 Brady Eidson 2012-03-16 14:57:47 PDT
Created attachment 132388 [details]
Patch v1 - Fix plus API test
Comment 2 Geoffrey Garen 2012-03-16 15:12:23 PDT
Comment on attachment 132388 [details]
Patch v1 - Fix plus API test

r=me
Comment 3 Brady Eidson 2012-03-16 15:30:55 PDT
http://trac.webkit.org/changeset/111080
Comment 4 Jeremy Huddleston Sequoia 2012-03-17 16:13:51 PDT
This is still happening in r111120
Comment 5 Brady Eidson 2012-03-17 18:08:28 PDT
(In reply to comment #4)
> This is still happening in r111120

This particular bug was on the receiving app's end. Were you running Mail against the WebKit nightly, or were you just running Safari against the WebKit nightly?
Comment 6 Jeremy Huddleston Sequoia 2012-03-17 18:45:43 PDT
Ah, nevermind.