Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a917f438fb1f8bca90b2d01a4440261d34bac180
      
https://github.com/WebKit/WebKit/commit/a917f438fb1f8bca90b2d01a4440261d34bac180
  Author: Lauro Moura <[email protected]>
  Date:   2026-07-08 (Wed, 08 Jul 2026)

  Changed paths:
    M Source/WebDriver/SessionHost.cpp
    M Source/WebDriver/WebDriverService.cpp
    M Source/WebDriver/glib/SessionHostGlib.cpp

  Log Message:
  -----------
  [WebDriver] Improve driver logging coverage
https://bugs.webkit.org/show_bug.cgi?id=316798

Reviewed by BJ Burg.

To improve traceability, this commit adds RELEASE_LOG statements
covering the following areas of Source/WebDriver:

- Browser startup and lifetime (for glib ports)
- HTTP request and response
- Driver->Browser Automation.json commands and replies.

The added log statements cover mainly data like the request path, body
size, response status, and duration. The actual body with payload like
field values or JS code to be executed is omitted. For deeper
inspection, the existing LOG() statements that inspect the actual
payload are kept.

We opted for RELEASE_LOG instead of LOG due to the WebDriver-related
channels being low-volume in comparison to hotter ones internal to the
browser. On top of that, it should be easier for reporters to provide
release logs, helping get more useful bug reports.

Example output:

Started WebSocket BiDi server with host local and port 60782
Started HTTP server with host local and port 60781
HTTP request POST /session (body=303 bytes)
Spawning local browser: /sdk/webkit/WebKitBuild/WPE/Release/bin/MiniBrowser 
with 2 argument(s)
Connecting to RemoteInspector at 127.0.0.1:54821
Connected to RemoteInspector at 127.0.0.1:54821 after 1 attempt(s)
    SEND inspector #0001: Automation.createBrowsingContext (52 bytes)
    RECV inspector #0001: ok
HTTP response 200 in 196ms
HTTP request POST /session/fbc9c527-945d-4030-852e-50c5f1852557/url (body=43 
bytes)
    SEND inspector #0002: Automation.resolveBrowsingContext (149 bytes)
    RECV inspector #0002: ok
    SEND inspector #0003: Automation.waitForNavigationToComplete (207 bytes)
    RECV inspector #0003: ok
    SEND inspector #0004: Automation.isShowingJavaScriptDialog (135 bytes)
    RECV inspector #0004: ok
    SEND inspector #0005: Automation.navigateBrowsingContext (212 bytes)
    RECV inspector #0005: ok
HTTP response 200 in 124ms

* Source/WebDriver/SessionHost.cpp:
(WebDriver::SessionHost::inspectorDisconnected):
(WebDriver::SessionHost::sendCommandToBackend):
(WebDriver::SessionHost::dispatchMessage):
* Source/WebDriver/WebDriverService.cpp:
(WebDriver::printUsageStatement):
(WebDriver::WebDriverService::run):
(WebDriver::WebDriverService::handleRequest):
* Source/WebDriver/glib/SessionHostGlib.cpp:
(WebDriver::SessionHost::launchBrowser):
(WebDriver::SessionHost::connectToBrowser):
(WebDriver::SessionHost::connectionDidClose):
(WebDriver::SessionHost::setTargetList):

Canonical link: https://commits.webkit.org/316784@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to