Skip to content

fix: transport read buffer, WebSocket base URL scheme, empty PLAYWRIGHT_NODEJS_PATH, Locator debugger display - #3454

Merged
Pavel Feldman (pavelfeldman) merged 3 commits into
microsoft:mainfrom
dgozman:fix-3437
Nov 10, 2026
Merged

Pavel Feldman (pavelfeldman) merged 3 commits into
microsoft:mainfrom
dgozman:fix-3437

Conversation

@dgozman

@dgozman Dmitry Gozman (dgozman) commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • The driver output is read in 64 KB chunks instead of 1 KB, and DEBUG is read once per connection instead of for every message.
  • URLMatch.ToWebSocketBaseURL replaces only the scheme, not every http:// in the base URL.
  • An empty PLAYWRIGHT_NODEJS_PATH counts as not set, so the bundled Node.js is used.
  • Locator has a DebuggerDisplay, so a debugger shows the selector and does not call ToString(), which waits for the driver.

Fixes #3437
Fixes #3433
Fixes #3427

…ce per connection

The reader took 1 KB per read, so a 10 MB message took about 10,000 reads,
and every message sent or received looked up the DEBUG environment variable.

Fixes: microsoft#3437
…PLAYWRIGHT_NODEJS_PATH as not set

- URLMatch.ToWebSocketBaseURL replaced every "http://" in the base URL, also
  one in its path or query.
- An empty PLAYWRIGHT_NODEJS_PATH, as CI templates often declare it, made the
  driver fail to start instead of using the bundled Node.js.

References: microsoft#3433
…String()

Locator.ToString() waits for the driver. While a debugger evaluates it, the
other threads are frozen, so hovering a locator ended in "Function evaluation
timed out". The debugger now shows the selector without calling it.

References: microsoft#3427
@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit ed5abf0 into microsoft:main Nov 10, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants