<?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>278804</bug_id>
          
          <creation_ts>2024-08-28 12:46:41 -0700</creation_ts>
          <short_desc>[WebDriver][GLIB] Segfault with connection being closed by empty SetTargetList not related to disconnection</short_desc>
          <delta_ts>2024-09-02 09:18:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Lauro Moura">lmoura</assigned_to>
          <cc>bburg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2056023</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-08-28 12:46:41 -0700</bug_when>
    <thetext>When initializing a session, might an empty target list in `SessionHostGlib.cpp::setTargetList()`. After 282489@main / bug277341, this function assumes whenever we get an empty target list, it means we lost connection to the RemoteInspectorServer. But we might get empty lists due to the message handler filtering only the &quot;Automation&quot; targets before sending to `setTargetList()`, removing targets like `WebPage`.

This behavior is leading to segfaults inside `setTargetList` due to the scenario above prematurely calling `connectionDidClose()`.

Patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056615</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-08-30 10:14:37 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32951</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057037</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-02 09:17:17 -0700</bug_when>
    <thetext>Committed 283061@main (b00d19a0d891): &lt;https://commits.webkit.org/283061@main&gt;

Reviewed commits have been landed. Closing PR #32951 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057039</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-02 09:18:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/135147545&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>