@@ -34,6 +34,8 @@ class WebDriverConnection final
34
34
static ErrorOr<NonnullRefPtr<WebDriverConnection>> connect (Web::PageClient& page_client, ByteString const & webdriver_ipc_path);
35
35
virtual ~WebDriverConnection () = default ;
36
36
37
+ void visit_edges (JS::Cell::Visitor&);
38
+
37
39
private:
38
40
WebDriverConnection (NonnullOwnPtr<Core::LocalSocket> socket, Web::PageClient& page_client);
39
41
@@ -106,10 +108,10 @@ class WebDriverConnection final
106
108
107
109
void set_current_browsing_context (Web::HTML::BrowsingContext&);
108
110
Web::HTML::BrowsingContext& current_browsing_context () { return *m_current_browsing_context; }
109
- JS::GCPtr<Web::HTML::BrowsingContext> current_parent_browsing_context () { return m_current_parent_browsing_context. ptr () ; }
111
+ JS::GCPtr<Web::HTML::BrowsingContext> current_parent_browsing_context () { return m_current_parent_browsing_context; }
110
112
111
113
void set_current_top_level_browsing_context (Web::HTML::BrowsingContext&);
112
- JS::GCPtr<Web::HTML::BrowsingContext> current_top_level_browsing_context () { return m_current_top_level_browsing_context. ptr () ; }
114
+ JS::GCPtr<Web::HTML::BrowsingContext> current_top_level_browsing_context () { return m_current_top_level_browsing_context; }
113
115
114
116
ErrorOr<void , Web::WebDriver::Error> ensure_current_browsing_context_is_open ();
115
117
ErrorOr<void , Web::WebDriver::Error> ensure_current_top_level_browsing_context_is_open ();
@@ -147,15 +149,15 @@ class WebDriverConnection final
147
149
Web::WebDriver::TimeoutsConfiguration m_timeouts_configuration;
148
150
149
151
// https://w3c.github.io/webdriver/#dfn-current-browsing-context
150
- JS::Handle <Web::HTML::BrowsingContext> m_current_browsing_context;
152
+ JS::GCPtr <Web::HTML::BrowsingContext> m_current_browsing_context;
151
153
152
154
// https://w3c.github.io/webdriver/#dfn-current-parent-browsing-context
153
- JS::Handle <Web::HTML::BrowsingContext> m_current_parent_browsing_context;
155
+ JS::GCPtr <Web::HTML::BrowsingContext> m_current_parent_browsing_context;
154
156
155
157
// https://w3c.github.io/webdriver/#dfn-current-top-level-browsing-context
156
- JS::Handle <Web::HTML::BrowsingContext> m_current_top_level_browsing_context;
158
+ JS::GCPtr <Web::HTML::BrowsingContext> m_current_top_level_browsing_context;
157
159
158
- JS::Handle <JS::Cell> m_action_executor;
160
+ JS::GCPtr <JS::Cell> m_action_executor;
159
161
};
160
162
161
163
}
0 commit comments