Branch: refs/heads/webkitglib/2.52
Home: https://github.com/WebKit/WebKit
Commit: 4d7e7cdf887ddb00e84f677641643ddd708ffcc4
https://github.com/WebKit/WebKit/commit/4d7e7cdf887ddb00e84f677641643ddd708ffcc4
Author: Adrian Perez de Castro <[email protected]>
Date: 2026-08-25 (Tue, 25 Aug 2026)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitImage.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitImage.cpp
Log Message:
-----------
Cherry-pick 319805@main (05b0362e7afb).
https://bugs.webkit.org/show_bug.cgi?id=322484
[GTK][WPE] Using g_loadable_icon_load[_async] on a WebKitImage provides
wrong translucent pixel values
https://bugs.webkit.org/show_bug.cgi?id=322484
Reviewed by Patrick Griffis.
WebKitImage is documented to use premultiplied alpha, but when wrapping the
pixel data with a SkImage the flag kUnpremul_SkAlphaType was used. The fix
is to use the correct kPremul_SkAlphaType flag instead
The "/webkit/WebKitImage/loadable-icon-interface-sync-load" test case is
modified to add encoding of a WebKitImage with a translucent pixel as PNG
and then reading it back using plain libpng calls to verify that the pixel
was stored un-premultiplied correctly in the PNG (as per the spec).
* Source/WebKit/UIProcess/API/glib/WebKitImage.cpp:
(webkitImageLoad):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestWebKitImage.cpp:
(testWebKitImageLoadableIconLoadSync):
Canonical link: https://commits.webkit.org/319805@main
Canonical link: https://commits.webkit.org/305877.1122@webkitglib/2.52
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications