WebDriver: Properly distinguish HTTP sessions from other sessions

The WebDriver spec now separately tracks an active HTTP session list,
which will contains all non-BiDi WebDriver sessions by default. There
may only be one active HTTP session at a time.

See: 63a397f
This commit is contained in:
Timothy Flynn 2025-02-07 09:16:20 -05:00 committed by Tim Flynn
commit 3128d87766
Notes: github-actions[bot] 2025-02-10 16:35:10 +00:00
4 changed files with 33 additions and 17 deletions

View file

@ -570,9 +570,8 @@ Messages::WebDriverClient::CloseWindowResponse WebDriverConnection::close_window
// 11.3 Switch to Window, https://w3c.github.io/webdriver/#dfn-switch-to-window
Messages::WebDriverClient::SwitchToWindowResponse WebDriverConnection::switch_to_window(String const& handle)
{
// 4. If handle is equal to the associated window handle for some top-level browsing context in the
// current session, let context be the that browsing context, and set the current top-level
// browsing context with context.
// 4. If handle is equal to the associated window handle for some top-level browsing context, let context be the that
// browsing context, and set the current top-level browsing context with session and context.
// Otherwise, return error with error code no such window.
bool found_matching_context = false;