Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 717e0fa523368649b0d4e8acc984897c248d057d
https://github.com/WebKit/WebKit/commit/717e0fa523368649b0d4e8acc984897c248d057d
Author: Lauro Moura <[email protected]>
Date: 2026-08-10 (Mon, 10 Aug 2026)
Changed paths:
M Source/WebDriver/WebDriverService.cpp
M Source/WebDriver/soup/WebSocketServerSoup.cpp
Log Message:
-----------
[WebDriver][BiDi] Use OS-provided free port instead of guessing based on the
http port
https://bugs.webkit.org/show_bug.cgi?id=321314
Reviewed by Carlos Alberto Lopez Perez.
Currently, the WebDriver service chooses the WebDriverBiDi WebSockets
port based on the HTTP server port if the latter is not explicitly
defined by the user.
While this works fine in low churn scenarios, this does not guarantee
that the server will pick a free port, potentially leading to fatal
startup errors and test failures.
This commit makes the WebDriverBiDi server let the OS provide a free
port if the user does not provide one, reporting that port back through
the `webSocketURL` capability. Also, to ensure the os-provided port does
not clash with the explicit port requested for the HTTP server, the
WebSocket server is now started after it.
For bidi-only connections (not yet supported, though), the user can just
provide the port explicitly.
* Source/WebDriver/WebDriverService.cpp:
(WebDriver::WebDriverService::run):
* Source/WebDriver/soup/WebSocketServerSoup.cpp:
(WebDriver::WebSocketServer::listen):
Canonical link: https://commits.webkit.org/318931@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications