Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fb7cd496792a8bdb747212b73b53dc8acf8c3faf
https://github.com/WebKit/WebKit/commit/fb7cd496792a8bdb747212b73b53dc8acf8c3faf
Author: Lauro Moura <[email protected]>
Date: 2024-11-04 (Mon, 04 Nov 2024)
Changed paths:
M Source/WebDriver/WebDriverService.cpp
M Source/WebDriver/WebDriverService.h
M Source/WebDriver/WebSocketServer.cpp
M Source/WebDriver/WebSocketServer.h
M Source/WebDriver/soup/WebSocketServerSoup.cpp
Log Message:
-----------
[WebDriver] Add BiDi message handling support
https://bugs.webkit.org/show_bug.cgi?id=280501
Reviewed by Carlos Garcia Campos.
This commit adds the basic incoming message handling and replying. It
uses the simple `session.status` method.
As we support a single session, calling `session.status()` will always
return false for now, given we do not support calling static methods
without a session yet.
This version matches the incoming message with the message handler
only by the "method" name parameter, leaving the matching of the
method parameters to the handler function.
This commit also changes the Message data type to hold a CString instead
of pair of plain C string + length.
* Source/WebDriver/WebDriverService.cpp:
(WebDriver::WebDriverService::handleMessage): Added.
(WebDriver::WebDriverService::findBidiCommand): Added.
(WebDriver::WebDriverService::bidiSessionStatus): Added.
* Source/WebDriver/WebDriverService.h:
* Source/WebDriver/WebSocketServer.cpp:
(WebDriver::WebSocketMessageHandler::Message::fail): Use int for command
ids.
(WebDriver::WebSocketMessageHandler::Message::reply): Added.
* Source/WebDriver/WebSocketServer.h:
* Source/WebDriver/soup/WebSocketServerSoup.cpp:
(WebDriver::WebSocketServer::sendMessage):
amend: ensure we call the completion handler
Canonical link: https://commits.webkit.org/286076@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes