mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 05:22:04 +00:00
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:
parent
022e2b8a94
commit
048b51eb54
Notes:
github-actions[bot]
2024-10-18 07:45:58 +00:00
Author: https://github.com/trflynn89
Commit: 048b51eb54
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1850
Reviewed-by: https://github.com/gmta ✅
3 changed files with 19 additions and 6 deletions
|
@ -199,6 +199,14 @@ WebDriverConnection::WebDriverConnection(NonnullOwnPtr<Core::LocalSocket> socket
|
|||
set_current_top_level_browsing_context(page_client.page().top_level_browsing_context());
|
||||
}
|
||||
|
||||
void WebDriverConnection::visit_edges(JS::Cell::Visitor& visitor)
|
||||
{
|
||||
visitor.visit(m_current_browsing_context);
|
||||
visitor.visit(m_current_parent_browsing_context);
|
||||
visitor.visit(m_current_top_level_browsing_context);
|
||||
visitor.visit(m_action_executor);
|
||||
}
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-close-the-session
|
||||
void WebDriverConnection::close_session()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue