Support reading "image/png" on ClipboardItem
<rdar://problem/63588957>
Created attachment 400214 [details] For EWS
Created attachment 400215 [details] For EWS
Created attachment 400216 [details] For EWS
Comment on attachment 400216 [details] For EWS View in context: https://bugs.webkit.org/attachment.cgi?id=400216&action=review > Source/WebCore/Modules/async-clipboard/mac/ClipboardImageReaderMac.mm:41 > + if (auto bitmapData = retainPtr([image TIFFRepresentation])) { > + auto bitmapRepresentation = adoptNS([[NSBitmapImageRep alloc] initWithData:bitmapData.get()]); > + m_result = Blob::create(SharedBuffer::create([bitmapRepresentation representationUsingType:NSBitmapImageFileTypePNG properties:@{ }]), m_mimeType); I provided a potential alternative to this double-encode offline.
Comment on attachment 400216 [details] For EWS View in context: https://bugs.webkit.org/attachment.cgi?id=400216&action=review >> Source/WebCore/Modules/async-clipboard/mac/ClipboardImageReaderMac.mm:41 >> + m_result = Blob::create(SharedBuffer::create([bitmapRepresentation representationUsingType:NSBitmapImageFileTypePNG properties:@{ }]), m_mimeType); > > I provided a potential alternative to this double-encode offline. 👍🏻 Giving it a try, thanks!
Created attachment 400365 [details] Patch for landing
Committed r262209: <https://trac.webkit.org/changeset/262209> All reviewed patches have been landed. Closing bug and clearing flags on attachment 400365 [details].