Branch: refs/heads/webkitglib/2.50
Home: https://github.com/WebKit/WebKit
Commit: fd56648f89e45597c7306476c2285d8af15dad0e
https://github.com/WebKit/WebKit/commit/fd56648f89e45597c7306476c2285d8af15dad0e
Author: Michael Catanzaro <[email protected]>
Date: 2025-10-22 (Wed, 22 Oct 2025)
Changed paths:
M Source/WebCore/platform/Pasteboard.h
M Source/WebCore/platform/glib/PasteboardGLib.cpp
M Source/WebKit/UIProcess/gtk/WebPasteboardProxyGtk.cpp
Log Message:
-----------
Cherry-pick 301877@main (d7d1107bc9b6).
https://bugs.webkit.org/show_bug.cgi?id=218519
[WPE][GTK] Can't paste image data (like image/png) from the clipboard in
WebKit browsers
https://bugs.webkit.org/show_bug.cgi?id=218519
Reviewed by Adrian Perez de Castro.
Change the Pasteboard::read PasteboardFileReader overload to more
closely match the Cocoa implementation. Notably, we now accept more
image types as input rather than supporting only PNG. However, our
implementation is simpler because we only support a single clipboard
item, so the index parameter is ignored.
Also, fix a bug that caused us to bail early if
PasteboardStrategy::readFilePathsFromClipboard does not return any
filenames.
Thanks to Miikka, Sonny Piers, and 荒野無燈 for their help in the bug
report.
Also, I've snuck in a couple extra fixes in other files, to make the
Pasteboard constructor explicit and fix a typo.
Canonical link: https://commits.webkit.org/301877@main
Canonical link: https://commits.webkit.org/298234.206@webkitglib/2.50
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications