playwright/packages/playwright-core/src/common
Andrey Lushnikov 8538f61a72
feat(containers): implement global network tethering for playwright server (#17719)
This patch implements a new mode of network tethering for Playwright
server & its clients.
With this patch:
- playwright server could be launched with the
`--browser-proxy-mode=tether` flag to engage in the new mode
- a new type of client, "Network Tethering Client" can connect to the
server to provide network traffic to the browsers
- all clients that connect to the server with the `x-playwright-proxy:
*` header will get traffic from the "Network Tethering Client"

This patch also adds an environment variable
`PW_OWNED_BY_TETHER_CLIENT`. With this env, playwright server will
auto-close when the network tethering client disconnects. It will also
auto-close if the network client does not connect to the server in the
first 10 seconds of the server existence. This way we can ensure that
`npx playwright docker start` blocks terminal & controls the lifetime of
the started container.
2022-11-03 13:47:51 -07:00
..
debugLogger.ts chore: make bundles typed (#13620) 2022-04-18 17:50:25 -07:00
DEPS.list chore: make bundles typed (#13620) 2022-04-18 17:50:25 -07:00
errors.ts chore: use utils via index export (4) (#13404) 2022-04-07 14:36:13 -07:00
netUtils.ts fix: grid connection invalid method (#17706) 2022-09-30 00:41:03 -07:00
socksProxy.ts feat(containers): implement global network tethering for playwright server (#17719) 2022-11-03 13:47:51 -07:00
timeoutSettings.ts fix(ff): allow more time to launch browser (#15290) 2022-06-30 18:07:25 -07:00
types.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
userAgent.ts chore: switch to the new debug controller harness (#18308) 2022-10-25 09:55:20 -07:00