Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f7a0d4edbb4da6870a96ca6ea5bf9caed40dd9c0
https://github.com/WebKit/WebKit/commit/f7a0d4edbb4da6870a96ca6ea5bf9caed40dd9c0
Author: Adrian Perez de Castro <[email protected]>
Date: 2025-12-23 (Tue, 23 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
Log Message:
-----------
[GLib] Drop WTF_ALLOW_UNSAFE_BUFFER_USAGE in WebKitWebView.cpp
https://bugs.webkit.org/show_bug.cgi?id=304570
Reviewed by Carlos Garcia Campos.
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
(webkit_web_view_load_html): Use CStringView to wrap a plain C string,
as it handles nulls correctly, which then in turn can be used to pass
the span the SharedBuffer::create().
(webkit_web_view_load_alternate_html): Ditto, butu ultimately calling
DataSegment::create().
(webkitWebViewEvaluateJavascriptInternal): Reorder code to avoid needing
to call strlen(), and either call String::fromUTF8() directly when the
length is not specified, or use unsafeMakeSpan() otherwise before
String::fromUTF8().
(webkitWebViewCallAsyncJavascriptFunctionInternal): Ditto.
Canonical link: https://commits.webkit.org/304904@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications