Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4072def53f5ef79fe3b9bd9eb11c53042f2d350a
https://github.com/WebKit/WebKit/commit/4072def53f5ef79fe3b9bd9eb11c53042f2d350a
Author: Ruthvik Konda <[email protected]>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M Source/WebKit/Platform/IPC/Connection.h
M Source/WebKit/Platform/IPC/HandleMessage.h
M Source/WebKit/Platform/IPC/MessageReceiveQueues.h
M Source/WebKit/Platform/IPC/SharedBufferReference.cpp
M Source/WebKit/Platform/IPC/StreamClientConnection.cpp
M Source/WebKit/Platform/IPC/StreamConnectionBuffer.cpp
Log Message:
-----------
Use protect() instead of Ref/RefPtr { } in IPC code
https://bugs.webkit.org/show_bug.cgi?id=316279
rdar://178687645
Reviewed by Zak Ridouh.
Mechanical migration from brace-initialized Ref/RefPtr temporaries to the
protect() free function in Source/WebKit/Platform/IPC/, aligning with the
codebase-wide transition.
All 13 instances are lambda captures, inline temporaries, or function
arguments. One .get() call is dropped where Ref's implicit operator T&()
suffices.
No new tests needed (no behavioral change, style-only refactor).
* Source/WebKit/Platform/IPC/Connection.h:
(IPC::Connection::makeAsyncReplyHandlerWithDispatcher):
* Source/WebKit/Platform/IPC/HandleMessage.h:
(IPC::handleMessageSynchronous):
(IPC::handleMessageAsync):
(IPC::handleMessageAsyncWithoutUsingIPCConnection):
* Source/WebKit/Platform/IPC/MessageReceiveQueues.h:
(IPC::FunctionDispatcherQueue::enqueueMessage):
(IPC::WorkQueueMessageReceiverQueue::enqueueMessage):
* Source/WebKit/Platform/IPC/SharedBufferReference.cpp:
(IPC::SharedBufferReference::serializableBuffer):
(IPC::SharedBufferReference::span):
* Source/WebKit/Platform/IPC/StreamClientConnection.cpp:
(IPC::StreamClientConnection::open):
* Source/WebKit/Platform/IPC/StreamConnectionBuffer.cpp:
(IPC::StreamConnectionBuffer::createHandle):
Canonical link: https://commits.webkit.org/314538@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications