Decoder::unwrapForTesting() is unnecessarily inefficient.
Created attachment 444303 [details] Patch
Comment on attachment 444303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=444303&action=review > Source/WebKit/Platform/IPC/Decoder.cpp:146 > + Vector<Attachment> attachments = std::exchange(decoder.m_attachments, { }); I would totally use auto here. > Source/WebKit/Platform/IPC/Decoder.h:137 > + std::optional<Attachment> takeAttachment(); Why isn’t this named takeLastAttachment? Is it obvious that the last one is the one to take?
Created attachment 444374 [details] Patch
Committed r285866 (244292@main): <https://commits.webkit.org/244292@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 444374 [details].
<rdar://problem/85460462>