<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>303623</bug_id>
          
          <creation_ts>2025-12-05 06:05:42 -0800</creation_ts>
          <short_desc>[GLib] Crash in SleepDisablerGLib::acquireInhibitor() when g_get_prgname() returns NULL</short_desc>
          <delta_ts>2025-12-09 07:58:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kdwk">kdwkleung</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2163572</commentid>
    <comment_count>0</comment_count>
    <who name="Kdwk">kdwkleung</who>
    <bug_when>2025-12-05 06:05:42 -0800</bug_when>
    <thetext>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, a fallback of empty string (&quot;&quot;) can be provided.

Steps to reproduce:
1. In WebKit Dev Container, use JHBuild to build WebKit and Epiphany, then run the JHBuild Epiphany
2. Epiphany should now be running in a non-sandboxed environment, causing shouldUsePortal() (SleepDisablerGLib.cpp:89) to return false
3. Visit https://browserbench.org/Speedometer3.1/, press &quot;Start Test&quot;
4. Crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2163762</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2025-12-05 15:22:40 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/54921</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164467</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-12-09 07:58:45 -0800</bug_when>
    <thetext>Committed 304162@main (1876825e173c): &lt;https://commits.webkit.org/304162@main&gt;

Reviewed commits have been landed. Closing PR #54921 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>