WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
301095
Implement IPC error string reporting in testing for IPC::Connection
https://bugs.webkit.org/show_bug.cgi?id=301095
Summary
Implement IPC error string reporting in testing for IPC::Connection
Jon Butler
Reported
2025-10-20 07:40:38 PDT
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'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
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-10-20 07:40:53 PDT
<
rdar://problem/163035367
>
Jon Butler
Comment 2
2025-10-20 07:45:55 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/52656
EWS
Comment 3
2025-11-04 03:00:27 PST
Committed
302528@main
(2837e1eaeb3d): <
https://commits.webkit.org/302528@main
> Reviewed commits have been landed. Closing PR #52656 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug