From 4d4ed96fa1befa6dcb5672462d208ae8b70ec4f4 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 14 Nov 2022 10:59:34 -0500 Subject: [PATCH] WebContent: Provide access to ConnectionFromClient's PageHost This is needed to construct a WebDriverConnection from outside of PageHost itself in Ladybird. --- Userland/Services/WebContent/ConnectionFromClient.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Services/WebContent/ConnectionFromClient.h b/Userland/Services/WebContent/ConnectionFromClient.h index ee61d81f53..da276be9fe 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.h +++ b/Userland/Services/WebContent/ConnectionFromClient.h @@ -39,6 +39,9 @@ public: Optional fd() { return socket().fd(); } + PageHost& page_host() { return *m_page_host; } + PageHost const& page_host() const { return *m_page_host; } + private: explicit ConnectionFromClient(NonnullOwnPtr);