Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c62caf3fdbdb698d3b592a5635707a55b06be1fd
      
https://github.com/WebKit/WebKit/commit/c62caf3fdbdb698d3b592a5635707a55b06be1fd
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2026-01-28 (Wed, 28 Jan 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/glib/WebKitFileChooserRequest.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitImage.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitURISchemeRequest.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp

  Log Message:
  -----------
  [GLib] Reduce WTF_ALLOW_UNSAFE_BUFFER_USAGE in 
Source/WebKit/UIProcess/API/glib/
https://bugs.webkit.org/show_bug.cgi?id=306375

Reviewed by Carlos Garcia Campos.

* Source/WebKit/UIProcess/API/glib/WebKitFileChooserRequest.cpp:
(webkit_file_chooser_request_select_files): Use the span() helper to
iterate over the "files" GStrv; while at it avoid reference churn by
moving the resulting "selectedFiles" smart pointer.
* Source/WebKit/UIProcess/API/glib/WebKitImage.cpp:
Remove redundant instance of WTF_ALLOW_UNSAFE_BUFFER_USAGE_{BEGIN,END}
which is covered by WTF_IGNORE_WARNINGS_IN_THIRD_PARTY_CODE_{BEGIN,END}
surrounding it.
* Source/WebKit/UIProcess/API/glib/WebKitURISchemeRequest.cpp: Change
the "readBuffer" member to be an std::array, which allows more easily
using spans in the rest of the code.
(webkitURISchemeRequestReadCallback): Use spans over "readBuffer".
(webkit_uri_scheme_request_finish_with_response): Ditto.
* Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp:
(pathIsBlocked): Use a span for the path elements to avoid unbounded
access to the array holding them.

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



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

Reply via email to