<?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>258827</bug_id>
          
          <creation_ts>2023-07-03 14:55:31 -0700</creation_ts>
          <short_desc>Bug 258793 follow-up: Add test to exercise the null-decoder-with-NoError path in Connection::sendSyncMessage and StreamClientConnection::trySendSyncStream</short_desc>
          <delta_ts>2023-07-10 14:56:41 -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>WebKit Process Model</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>258793</dependson>
    
    <dependson>258861</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gerald Squelart">g_squelart</reporter>
          <assigned_to name="Kimmo Kinnunen">kkinnunen</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1964878</commentid>
    <comment_count>0</comment_count>
    <who name="Gerald Squelart">g_squelart</who>
    <bug_when>2023-07-03 14:55:31 -0700</bug_when>
    <thetext>Bug 258793 modified `Connection::sendSyncMessage` to handle a code path that could potential return a null `Decoder` pointer along with an `Error::NoError`, which could eventually lead callers (e.g.: `WebPaymentCoordinator::canMakePayments`) to attempt to read the value of an empty `std::optional`.

Unless the real root cause is found that would remove this code path entirely, it would be good to add a proper test that exercises it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965090</commentid>
    <comment_count>1</comment_count>
    <who name="Gerald Squelart">g_squelart</who>
    <bug_when>2023-07-05 02:44:24 -0700</bug_when>
    <thetext>Bug 258861 added a couple of other similar fixes in StreamClientConnection::trySendSyncStream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966048</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-10 14:56:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/112040784&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>