<?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>301095</bug_id>
          
          <creation_ts>2025-10-20 07:40:38 -0700</creation_ts>
          <short_desc>Implement IPC error string reporting in testing for IPC::Connection</short_desc>
          <delta_ts>2025-11-04 03:00:29 -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>New Bugs</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="Jon Butler">jonbutler</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2152567</commentid>
    <comment_count>0</comment_count>
    <who name="Jon Butler">jonbutler</who>
    <bug_when>2025-10-20 07:40:38 -0700</bug_when>
    <thetext>This patch implements the first part of the IPC error string reporting feature, covering both IDL validation and MESSAGE_CHECK failures for IPC::Connection. It introduces:
- Error string tracking in the Decoder, and changes to the code generation to set this error string on validation failure
- Error string tracking on the Connection, and changes to the MESSAGE_CHECK logic to set the error string on failure
- An IPC Testing API method to check for an error string on a specific connection, and a layout test showing its usage and testing the implementation of this feature by calling a test message, IPCTester.CheckTestParameter

A few design decisions:
- Error messages are checked for directly by WebContent rather than sent back as an out-of-band message from the receiver. This allows WebContent to know when it can continue if there wasn&apos;t an error, rather than waiting for a message that may not be coming.
- The feature is 100% behind the IPC_TESTING_API feature flag, and only enabled in testing configurations</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152568</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-20 07:40:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/163035367&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152569</commentid>
    <comment_count>2</comment_count>
    <who name="Jon Butler">jonbutler</who>
    <bug_when>2025-10-20 07:45:55 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52656</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156225</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-11-04 03:00:27 -0800</bug_when>
    <thetext>Committed 302528@main (2837e1eaeb3d): &lt;https://commits.webkit.org/302528@main&gt;

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

    </bug>

</bugzilla>