WebContent+WebDriver: Update the current BC when switching windows

We had only implemented this step in the WebDriver process, but we need
to update the remote WebContent process as well.
This commit is contained in:
Timothy Flynn 2024-09-14 13:02:44 -04:00 committed by Tim Ledbetter
commit 5fc51b2ff9
Notes: github-actions[bot] 2024-09-14 23:57:32 +00:00
4 changed files with 23 additions and 4 deletions

View file

@ -148,7 +148,7 @@ Web::WebDriver::Response Session::switch_to_window(StringView handle)
// 5. Update any implementation-specific state that would result from the user selecting the current
// browsing context for interaction, without altering OS-level focus.
TRY(web_content_connection().switch_to_window());
TRY(web_content_connection().switch_to_window(m_current_window_handle));
// 6. Return success with data null.
return JsonValue {};