Ladybird+Userland: Remove use of unnecessary fd passing socket concept

Now that LibIPC is using SCM_RIGHTS properly, we can go back to only
having one socket laying around when needing to transfer fds to peers.
This commit is contained in:
Andrew Kaster 2024-04-17 18:44:39 -06:00 committed by Tim Flynn
commit 5e1d678bae
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00
32 changed files with 61 additions and 236 deletions

View file

@ -24,7 +24,6 @@
#include <LibWeb/Painting/ViewportPaintable.h>
#include <LibWeb/Platform/Timer.h>
#include <LibWebView/Attribute.h>
#include <LibWebView/SocketPair.h>
#include <WebContent/ConnectionFromClient.h>
#include <WebContent/PageClient.h>
#include <WebContent/PageHost.h>
@ -601,7 +600,7 @@ void PageClient::page_did_change_audio_play_state(Web::HTML::AudioPlayState play
client().async_did_change_audio_play_state(m_id, play_state);
}
WebView::SocketPair PageClient::request_worker_agent()
IPC::File PageClient::request_worker_agent()
{
auto response = client().send_sync_but_allow_failure<Messages::WebContentClient::RequestWorkerAgent>(m_id);
if (!response) {
@ -609,7 +608,7 @@ WebView::SocketPair PageClient::request_worker_agent()
exit(0);
}
return response->take_sockets();
return response->take_socket();
}
void PageClient::inspector_did_load()