mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Make Web::PageClient GC-allocated
This is a first step towards simplifying the ownership model of Web::Page. Soon Web::Page will store its WebClient as a NonnullGCPtr to help solve lifetime issues of the client being destroyed before the page.
This commit is contained in:
committed by
Andreas Kling
parent
5c0cd0f484
commit
6e6f3a9a8f
@@ -36,7 +36,7 @@ void ConnectionFromClient::request_file(Web::FileRequest request)
|
||||
|
||||
ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::LocalSocket> socket)
|
||||
: IPC::ConnectionFromClient<WebWorkerClientEndpoint, WebWorkerServerEndpoint>(*this, move(socket), 1)
|
||||
, m_page_host(PageHost::create(*this))
|
||||
, m_page_host(PageHost::create(Web::Bindings::main_thread_vm(), *this))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user