tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 79aea563439685c5d6b193685ee20ced7e15324e
parent 3d1aab554fe55ff7c9ae700c4008887f2af34fe0
Author: Sam Sneddon <gsnedders@apple.com>
Date:   Thu,  9 Oct 2025 20:38:39 +0000

Bug 1992508 [wpt PR 55168] - Use window/handles to check if WebDriver is still connected, a=testonly

Automatic update from web-platform-tests
Use window/handles to check if WebDriver is still connected

Using `/session/{session id}/window` has the problem of failing if the
current top-level browsing context is no longer open; if we instead
use `/session/{session id}/window/handles` then we are using a command
which should only fail if the underlying connection or session has
failed.

--

wpt-commits: bf1c5c0d0130237022d2955a8e4dca5844ed672f
wpt-pr: 55168

Diffstat:
Mtesting/web-platform/tests/tools/wptrunner/wptrunner/executors/executorwebdriver.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executorwebdriver.py b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executorwebdriver.py @@ -1034,7 +1034,7 @@ class WebDriverProtocol(Protocol): # still alive, and allows to complete the check within the testrunner # 5 seconds of extra_timeout we have as maximum to end the test before # the external timeout from testrunner triggers. - self.webdriver.send_session_command("GET", "window", timeout=2) + self.webdriver.send_session_command("GET", "window/handles", timeout=2) except (OSError, webdriver_error.WebDriverException, socket.timeout, webdriver_error.UnknownErrorException, webdriver_error.InvalidSessionIdException):