ObjC exception when dropping files into a WKView: drag and drop uses code from WebKit.framework
<rdar://problem/9197507>
Created attachment 225897 [details] Patch
Comment on attachment 225897 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=225897&action=review Looks good > Source/WebCore/platform/mac/WebCoreNSURLExtras.mm:722 > + NSURLRequest *request = [[NSURLRequest alloc] initWithURL:URL]; RetainPtr and avoid release? > Source/WebCore/platform/mac/WebCoreNSURLExtras.mm:920 > + */ Comment style > Source/WebCore/platform/mac/WebCoreNSURLExtras.mm:934 > + return rangeOfURLScheme(stringByTrimmingWhitespace(string)).location != NSNotFound; Maybe you could use CFStringTrimWhitespace.
https://trac.webkit.org/r165118