Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3e63430d2faf9ac6f4124821da03419d25768946
      
https://github.com/WebKit/WebKit/commit/3e63430d2faf9ac6f4124821da03419d25768946
  Author: Claudio Saavedra <[email protected]>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
    M Source/WebKit/NetworkProcess/glib/NetworkMDNSRegisterGLib.cpp
    M Source/WebKit/UIProcess/geoclue/GeoclueGeolocationProvider.cpp
    M Source/WebKit/WPEPlatform/wpe/WPECursorTheme.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestAutomationSession.cpp
    M Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h
    M Tools/WebKitTestRunner/InjectedBundle/glib/ActivateFontsGlib.cpp

  Log Message:
  -----------
  [GLib] Use the GLibExtras.h wrappers at the call sites that still unwrap 
typed strings
https://bugs.webkit.org/show_bug.cgi?id=325793

Reviewed by Patrick Griffis.

Since 322216@main the variadic wrappers accept GMallocString and
ASCIICString, and GMallocString converts to UTF8CStringView, but a few
call sites still unwrapped their strings with .utf8() or .data() to call
g_build_filename() and g_variant_new() directly. Use gBuildFilename() and
gVariantNew() there, so that the arguments are type checked and the join
results are held in a GMallocString.

Where the joined path ends up in a UTF8CString, build it from the
GMallocString span instead of calling unsafeFromUTF8() on a raw pointer,
which also avoids measuring the string again.

No change in behavior.

* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::configureDownloadBuffer):
* Source/WebKit/NetworkProcess/glib/NetworkMDNSRegisterGLib.cpp:
(WebKit::NetworkMDNSRegister::registerMDNSName):
* Source/WebKit/UIProcess/geoclue/GeoclueGeolocationProvider.cpp:
(WebKit::GeoclueGeolocationProvider::startPortalSession):
* Source/WebKit/WPEPlatform/wpe/WPECursorTheme.cpp:
(WPE::cursorsPath):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestAutomationSession.cpp:
(AutomationTest::requestSession):
* Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h:
(Test::getResourcesDir):
* Tools/WebKitTestRunner/InjectedBundle/glib/ActivateFontsGlib.cpp:
(WTR::activateFonts):

Canonical link: https://commits.webkit.org/322305@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to