mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +00:00
Everywhere: Hand pid of new process to client in launch_server_process()
Allows WebContentClient to get pid of WebContent process right after creation, so there is no window between forking and notify_process_information() IPC response, when client doesn't know the pid.
This commit is contained in:
parent
3110411c60
commit
c46bea479c
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: c46bea479c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/233
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/bugaevc
5 changed files with 5 additions and 11 deletions
|
@ -34,13 +34,6 @@ void WebContentClient::unregister_view(u64 page_id)
|
|||
m_views.remove(page_id);
|
||||
}
|
||||
|
||||
void WebContentClient::notify_process_information(WebView::ProcessHandle const& handle)
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::NotifyProcessInformation! pid={}", handle.pid);
|
||||
ProcessManager::the().add_process(ProcessType::WebContent, handle.pid);
|
||||
m_process_handle = handle;
|
||||
}
|
||||
|
||||
void WebContentClient::did_paint(u64 page_id, Gfx::IntRect const& rect, i32 bitmap_id)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue