Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 18770b8cdeffcaf19ead1809dc694b1d8bd37f1a
      
https://github.com/WebKit/WebKit/commit/18770b8cdeffcaf19ead1809dc694b1d8bd37f1a
  Author: Adrian Taylor <[email protected]>
  Date:   2025-12-18 (Thu, 18 Dec 2025)

  Changed paths:
    A LayoutTests/ipc/swift-receiver-expected.txt
    A LayoutTests/ipc/swift-receiver.html
    M Source/WebKit/Shared/IPCTester.cpp
    M Source/WebKit/Shared/IPCTester.h
    M Source/WebKit/Shared/IPCTester.messages.in
    M Source/WebKit/Shared/IPCTesterReceiverSwift.swift
    M Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp

  Log Message:
  -----------
  Add Swift IPC layout test
https://bugs.webkit.org/show_bug.cgi?id=303989
rdar://166293273

Reviewed by Richard Robinson.

We previously landed an ability for CoreIPC to call directly into Swift message
handlers, and we added a test message handler within the IPCTester
infrastructure. However, we landed no automated test to exercise this new code.
That's what this PR does.

This will only have any effect in builds where ENABLE_IPC_TESTING is true, which
as standard is ASAN or debug builds.

In all such builds, we'll now exercise a code path to call into C++ and receive
an asynchronous reply. If additionally ENABLE_IPC_TESTING_SWIFT is enabled,
we'll also call into a Swift message receiver.

As well as adding the new layout test (HTML) it also makes a tiny change to the
recently-added IPCTester logic, to ensure the C++ logic behaves slightly
differently to the Swift logic, as an extra layer of proof that the Swift
receiver was called. It also adds a missing call to removeMessageReceiver.

Test: ipc/swift-receiver.html
Canonical link: https://commits.webkit.org/304693@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to