--- Source/WebKit/Platform/IPC/Attachment.h.orig 2026-04-30 01:00:00 +++ Source/WebKit/Platform/IPC/Attachment.h 2026-04-30 01:00:00 @@ -26,7 +26,9 @@ #pragma once -#if OS(DARWIN) +#if USE(UNIX_DOMAIN_SOCKETS) +#include +#elif OS(DARWIN) #include #endif @@ -35,22 +37,18 @@ #include #endif -#if USE(UNIX_DOMAIN_SOCKETS) -#include -#endif - namespace IPC { // IPC::Attachment is a type representing objects that cannot be transferred as data, // rather they are transferred via operating system cross-process communication primitives. -#if OS(DARWIN) +#if USE(UNIX_DOMAIN_SOCKETS) +using Attachment = UnixFileDescriptor; +#elif OS(DARWIN) using Attachment = MachSendRight; #elif OS(WINDOWS) struct Attachment { }; // Windows does not need attachments at the moment. #elif OS(ANDROID) using Attachment = Variant>; -#elif USE(UNIX_DOMAIN_SOCKETS) -using Attachment = UnixFileDescriptor; #else #error Unsupported platform #endif --- Source/WebKit/Platform/IPC/Connection.h.orig 2026-04-30 01:00:00 +++ Source/WebKit/Platform/IPC/Connection.h 2026-04-30 01:00:00 @@ -342,10 +342,8 @@ }; #if OS(DARWIN) - xpc_connection_t xpcConnection() const { return m_xpcConnection.get(); } - XPCObjectPtr protectedXPCConnection() const { return xpcConnection(); } std::optional getAuditToken(); pid_t remoteProcessID() const; #endif #if USE(GLIB) --- Source/WebKit/Platform/IPC/glib/ConnectionGLib.cpp.orig 2026-04-30 01:00:00 +++ Source/WebKit/Platform/IPC/glib/ConnectionGLib.cpp 2026-04-30 01:00:00 @@ -482,6 +482,18 @@ g_socket_set_blocking(m_socket.get(), FALSE); } +#if OS(DARWIN) +pid_t Connection::remoteProcessID() const +{ + return 0; +} + +std::optional Connection::getAuditToken() +{ + return std::nullopt; +} +#endif + pid_t Connection::remoteProcessID(GSocket* socket) { GRefPtr connection = adoptGRef(G_UNIX_CONNECTION(g_object_new(G_TYPE_UNIX_CONNECTION, "socket", socket, nullptr)));