Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6a9025b13923e31cefc2003e5316d16832cebfb1
https://github.com/WebKit/WebKit/commit/6a9025b13923e31cefc2003e5316d16832cebfb1
Author: Diego Pino Garcia <[email protected]>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
R
LayoutTests/platform/gtk/editing/pasteboard/paste-image-does-not-reveal-file-url-expected.txt
R
LayoutTests/platform/gtk/http/tests/pasteboard/copy-image-from-context-menu-expected.txt
M Source/WebCore/platform/glib/PasteboardGLib.cpp
Log Message:
-----------
[GLIB] http/tests/pasteboard/copy-image-from-context-menu.html is a constant
failure
https://bugs.webkit.org/show_bug.cgi?id=325803
Reviewed by Patrick Griffis.
After 321801@main, the number of items in WebKitGTK's clipboard became 4,
making the
test 'copy-image-from-context-menu.html' fail.
Before that change the number of items was 2, which matched the general test
baseline.
However, the MIME types of those 2 items were already different even before
321801@main
('text/uri-list' and 'text/html', instead of 'text/html' and 'image/png').
The difference in size is explained by the fact that WebKitGTK puts too many
entries
on the clipboard when copying an image. The image URL is copied together with
the
image, which adds 'text/uri-list' and 'text/plain'. Before 321801@main the
image was
not exposed in the clipboard DataTransfer. After 321801@main it is, so the
clipboard
shows 'text/uri-list', 'text/html', 'text/plain' and the image (4 items in
total).
Changeset 304166@main landed a fix for the Mac port that stopped copying the
image URL
when copying images to the clipboard. This patch implements the same change for
GLib
ports. As a consequence, the clipboard has 2 items again and their MIME types
match the
general baseline, so the WebKitGTK specific baseline should no longer be needed.
*
LayoutTests/platform/gtk/http/tests/pasteboard/copy-image-from-context-menu-expected.txt:
Removed.
* Source/WebCore/platform/glib/PasteboardGLib.cpp:
(WebCore::Pasteboard::write(const PasteboardImage&)):
(WebCore::Pasteboard::write):
*
LayoutTests/platform/gtk/editing/pasteboard/paste-image-does-not-reveal-file-url-expected.txt:
Removed.
Canonical link: https://commits.webkit.org/322320@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications