LibWeb+WebContent: Spawn Worker processes from the chrome

Instead of spawning these processes from the WebContent process, we now
create them in the Browser chrome.

Part 1/N of "all processes are owned by the chrome".
This commit is contained in:
Andrew Kaster 2024-01-06 13:13:59 -07:00 committed by Andrew Kaster
parent 6ea4c248ab
commit 02edd240ae
Notes: sideshowbarker 2024-07-17 02:42:21 +09:00
26 changed files with 152 additions and 99 deletions

View file

@ -478,4 +478,12 @@ void WebContentClient::inspector_did_execute_console_script(String const& script
m_view.on_inspector_executed_console_script(script);
}
Messages::WebContentClient::RequestWorkerAgentResponse WebContentClient::request_worker_agent()
{
if (m_view.on_request_worker_agent)
return m_view.on_request_worker_agent();
return Messages::WebContentClient::RequestWorkerAgentResponse { WebView::SocketPair { -1, -1 } };
}
}