Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b10c93b84c9c9db3c04f774f0f8adf49aa8d0bdf
      
https://github.com/WebKit/WebKit/commit/b10c93b84c9c9db3c04f774f0f8adf49aa8d0bdf
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2025-12-23 (Tue, 23 Dec 2025)

  Changed paths:
    M Source/WTF/wtf/glib/GSpanExtras.h
    M 
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebProcessExtensionManager.cpp
    M Source/WebKit/WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp
    M Source/WebKit/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp
    M Source/WebKit/WebProcess/WebPage/gtk/WebPrintOperationGtk.h
    M Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp

  Log Message:
  -----------
  [GLib] Reduce WTF_ALLOW_UNSAFE_BUFFER_USAGE in Source/WebKit/WebProcess/
https://bugs.webkit.org/show_bug.cgi?id=304602

Reviewed by Carlos Garcia Campos.

* Source/WTF/wtf/glib/GSpanExtras.h: Add missing "using" statement for
WTF::adoptGMallocSpan.
* 
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebProcessExtensionManager.cpp:
(WebKit::parseUserData): Use spans instead of pointer arithmetic.
* Source/WebKit/WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp:
Mark arrays keyDownEntries and keyPressEntries as constexpr.
(WebKit::interpretKeyEvent): Use ranged "for" loops to iterate over
the entries of the keyDownEntries and keyPressEntries arrays, as the
compiler knows their sizes now that they are constexpr.
* Source/WebKit/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
(WebKit::WebPrintOperationGtk::PrintPagesData::PrintPagesData): Use
ranged "for" loops to iterate over the page ranges.
(WebKit::WebPrintOperationGtk::startPrint): Adopt the array of ranges
with GMallocSpan.
* Source/WebKit/WebProcess/WebPage/gtk/WebPrintOperationGtk.h: Keep a
GMallocSpan<GtkPageRange> instead of a raw pointer and length for page
ranges. This also ensures that the array of ranges gets properly freed.
* Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp: Use
WTF_IGNORE_WARNINGS_IN_THIRD_PARTY_CODE_{BEGIN,END} to surround Skia
header inclusions.

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



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

Reply via email to