[Webkit-unassigned] [Bug 218519] [GTK] Can't paste image data (like image/png) from the clipboard in WebKitGtk browsers.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 21 22:43:32 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=218519
--- Comment #11 from Miikka <miikka.veijonen at gmail.com> ---
And this:
File: Source/WebCore/platform/gtk/PasteboardGtk.cpp:
void Pasteboard::read(PasteboardPlainText& text, PlainTextURLReadingPolicy, Optional<size_t>):
static const ASCIILiteral imageTypes[] = { "image/png"_s, "image/jpeg"_s, "image/gif"_s, "image/bmp"_s, "image/vnd.microsoft.icon"_s, "image/x-icon"_s };
for (const auto& imageType : imageTypes) {
if (types.contains(imageType)) {
auto buffer = platformStrategies()->pasteboardStrategy()->readBufferFromClipboard(m_name, imageType);
if (!buffer->isEmpty() && reader.readImage(buffer.releaseNonNull(), imageType))
return;
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210122/f31c26d7/attachment.htm>
More information about the webkit-unassigned
mailing list