Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7b34c82d13a834bce7e40335ec32c39ee8b2cdb8
https://github.com/WebKit/WebKit/commit/7b34c82d13a834bce7e40335ec32c39ee8b2cdb8
Author: Carlos Garcia Campos <[email protected]>
Date: 2026-07-20 (Mon, 20 Jul 2026)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
Log Message:
-----------
[GTK][WPE] Function webkitDrmGetFormatName produces wrong string when
trimming trailing spaces
https://bugs.webkit.org/show_bug.cgi?id=319809
Reviewed by Adrian Perez de Castro.
It replaces the empty spaces with null characters, but the size of the
CString doesn't change. This is causing that the formats string shown in
webkit://gpu is garbled. It doesn't affect GTK for me because it doesn't
show any format with trailing spaces, but the bug is present anyway. We
can use a std::array instead of a CString, wich also saves a heap
allocation for every format, and then construct a std::span with the
buffer size without the trailing spaces.
* Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp:
(WebKit::webkitDrmGetFormatName):
Canonical link: https://commits.webkit.org/317535@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications