Branch: refs/heads/webkitglib/2.50
  Home:   https://github.com/WebKit/WebKit
  Commit: 0006652a06f9a8228700e01f3d3bbb5f7de1bcb5
      
https://github.com/WebKit/WebKit/commit/0006652a06f9a8228700e01f3d3bbb5f7de1bcb5
  Author: kdwk <[email protected]>
  Date:   2025-12-09 (Tue, 09 Dec 2025)

  Changed paths:
    M Source/WebCore/PAL/pal/system/glib/SleepDisablerGLib.cpp

  Log Message:
  -----------
  Cherry-pick 304162@main (1876825e173c). 
https://bugs.webkit.org/show_bug.cgi?id=303623

    [GLib] Crash in SleepDisablerGLib::acquireInhibitor() when g_get_prgname() 
returns NULL
    https://bugs.webkit.org/show_bug.cgi?id=303623

    Reviewed by Michael Catanzaro and Adrian Perez de Castro.

    According to the GLib API documentation, g_get_prgname() can return NULL 
(https://docs.gtk.org/glib/func.get_prgname.html). In SleepDisablerGLib.cpp:95, 
the result of this function is passed directly into g_variant_new(), resulting 
in assert string != NULL to fail and crash the WebProcess. Instead, it can fall 
back to the executable path. If that also fails, return early.
    * Source/WebCore/PAL/pal/system/glib/SleepDisablerGLib.cpp:
    (PAL::SleepDisablerGLib::acquireInhibitor):

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

Canonical link: https://commits.webkit.org/298234.318@webkitglib/2.50



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

Reply via email to