playwright/packages
Max Schmitt 92eb8e5090
chore: make connectOverCDP work with localhost (#20396)
This wraps happy eyeballs in two places, the place where we make the
JSON request to Chromium and the actual CDP WebSocket request.

It required changes inside our happy eyeballs implementation since the
[websocket library does not
set](https://github.com/websockets/ws/blob/master/lib/websocket.js#L714)
the `clientRequestOptions.hostname` field, it just sets the `host` field
where we then fall back to when its not set.

This test would pass before Node.js 18 and fail after Node.js 18 without
my changes.

Fixes https://github.com/microsoft/playwright/issues/20364
2023-01-30 17:44:26 +01:00
..
html-reporter chore: do not use docker for "Web Components" tests (#20339) 2023-01-24 14:00:10 -08:00
playwright chore: mark 1.31-next (#20268) 2023-01-20 19:29:14 -08:00
playwright-chromium chore: mark 1.31-next (#20268) 2023-01-20 19:29:14 -08:00
playwright-core chore: make connectOverCDP work with localhost (#20396) 2023-01-30 17:44:26 +01:00
playwright-ct-react chore: remove plugin registration sink (#20460) 2023-01-27 14:36:41 -08:00
playwright-ct-solid chore: remove plugin registration sink (#20460) 2023-01-27 14:36:41 -08:00
playwright-ct-svelte chore: remove plugin registration sink (#20460) 2023-01-27 14:36:41 -08:00
playwright-ct-vue chore: remove plugin registration sink (#20460) 2023-01-27 14:36:41 -08:00
playwright-ct-vue2 chore: remove plugin registration sink (#20460) 2023-01-27 14:36:41 -08:00
playwright-firefox chore: mark 1.31-next (#20268) 2023-01-20 19:29:14 -08:00
playwright-test fix(test-runner): throw error if no port and url is given (#20497) 2023-01-30 16:28:31 +01:00
playwright-webkit chore: mark 1.31-next (#20268) 2023-01-20 19:29:14 -08:00
protocol/src feat(route): match pattern on the server side (#20410) 2023-01-27 10:43:19 -08:00
recorder chore: recorder button styling (#19231) 2022-12-15 18:35:24 +01:00
trace/src chore: render typed locators in the trace viewer (#18166) 2022-10-18 19:23:40 -07:00
trace-viewer chore: fix racy emptyOutDir in trace-viewer build (#20090) 2023-01-13 06:42:56 -08:00
web chore: add type checking (#20280) 2023-01-27 14:18:46 -08:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00