LibWeb+WebContent: Partially implement the switch-to-frame endpoint

This is needed by the cookie tests for WPT.
This commit is contained in:
Timothy Flynn 2024-09-13 19:44:12 -04:00 committed by Tim Ledbetter
commit 60fa3752ee
Notes: github-actions[bot] 2024-09-14 23:57:15 +00:00
3 changed files with 53 additions and 25 deletions

View file

@ -16,6 +16,7 @@ namespace Web::WebDriver {
ByteString get_or_create_a_web_element_reference(Web::DOM::Node const& element);
JsonObject web_element_reference_object(Web::DOM::Node const& element);
bool represents_a_web_element(JsonValue const& value);
ErrorOr<Web::DOM::Element*, Web::WebDriver::Error> get_known_connected_element(StringView element_id);
bool is_element_stale(Web::DOM::Node const& element);