[NSDragItem init] is marked as NS_UNAVAILABLE. This affects DumpRenderTree and TestWebKitAPI, which both try to create an NSDragItem in a manner that invokes this method. Address this by using -initWithPasteboardWriter instead.
<rdar://problem/47685715>
Created attachment 360639 [details] Patch
Comment on attachment 360639 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=360639&action=review > Tools/DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:280 > + auto item = adoptNS([[NSDraggingItem alloc] initWithPasteboardWriter:(id<NSPasteboardWriting>)receiver.get()]); Nit - we generally prefer spaces between id and < for ObjC protocols like this. > Tools/TestWebKitAPI/mac/TestDraggingInfo.mm:118 > + auto item = adoptNS([[NSDraggingItem alloc] initWithPasteboardWriter:(id<NSPasteboardWriting>)receiver.get()]); It might be worth adding a FIXME here referencing https://bugs.webkit.org/show_bug.cgi?id=194060, too.
Created attachment 360653 [details] Patch
Comment on attachment 360653 [details] Patch Clearing flags on attachment: 360653 Committed r240749: <https://trac.webkit.org/changeset/240749>
All reviewed patches have been landed. Closing bug.