Steps To Reproduce: 1. Open https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video in Safari 2. Right click the video and select Copy Video address 3. Paste into new Mail message Results: Paste does not paste anything. Pasting into Messages and contenteditable divs works.
<rdar://problem/36352406>
Created attachment 339338 [details] Proposed fix
Created attachment 339344 [details] Patch
Comment on attachment 339344 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=339344&action=review > Source/WebCore/platform/mac/PasteboardMac.mm:202 > - paths.append(pasteboardURL.title.stripWhiteSpace()); > + paths.append([title stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]); We should probably just use our stripWhiteSpace, not Cocoa’s. You’re going to turn it into a String soon anyway, might as well do it before that step and use more WebKit code. > Tools/TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm:116 > + urls = [WebURLsWithTitles URLsFromPasteboard: [NSPasteboard generalPasteboard]]; No spaces after colons.
Created attachment 339354 [details] Patch
Comment on attachment 339354 [details] Patch Clearing flags on attachment: 339354 Committed r231276: <https://trac.webkit.org/changeset/231276>