WebContent: Add a JS visitor to WebDriver's IPC connection

We've added a few JS::Handle members to this class over time. Let's
avoid creating a new GC root for each of these, and explicitly add a
visitation method.
This commit is contained in:
Timothy Flynn 2024-10-17 18:50:36 -04:00 committed by Jelle Raaijmakers
commit 048b51eb54
Notes: github-actions[bot] 2024-10-18 07:45:58 +00:00
3 changed files with 19 additions and 6 deletions

View file

@ -77,6 +77,9 @@ void PageClient::visit_edges(JS::Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_page);
if (m_webdriver)
m_webdriver->visit_edges(visitor);
}
ConnectionFromClient& PageClient::client() const