all-black-493
62c8b3da1b
feat(browser): attach passive tools to browsers without HTTP discovery ( #2346 )
...
* feat(browser): attach passive tools to browsers without HTTP discovery
Accept a literal loopback browser WebSocket,
ws://127.0.0.1:PORT/devtools/browser/ID, as the cdp_endpoint of the six
passive browser tools. Discovery then reads Browser.getVersion and
Target.getTargets over that socket, and the target session adopts the
same socket, so a browser that asks for consent per connection prompts
once per call.
The socket identifier gates access, so Evidence records the endpoint as
ws://127.0.0.1:PORT/devtools/browser/[REDACTED], and runtime
reconciliation accepts that recorded form. HTTP endpoints and their
Evidence are unchanged. Electron, web runtime, scenario and Inspector
endpoints stay HTTP-only.
Refs #2288
* test(browser): match browser-socket captures against HTTP discovery
Check in the real Chrome lane that DevToolsActivePort names the same
browser socket as /json/version, and that inspecting the selected page
through that socket leaves DOM structure and scripts unchanged compared
with an inspection through HTTP discovery.
Refs #2288
* fix(browser): bound browser-socket handshake and report discovery timeouts
Run the browser-socket WebSocket handshake and both discovery commands
under one discovery deadline, so a port that accepts the connection but
never completes the upgrade times out instead of waiting forever.
Report a reached deadline as a timeout without carrying the internal
abort as its cause, so CLI and MCP project provider_timeout rather than
cancelled. Caller cancellation is still reported as cancelled.
Refs #2288
2026-10-14 00:36:37 +08:00
..
2026-10-13 21:46:27 +08:00
2026-10-09 20:18:52 +08:00
2026-10-10 01:54:42 +08:00
2026-10-12 01:22:26 +08:00
2026-10-07 17:16:58 +08:00
2026-10-12 12:37:00 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 03:47:45 +08:00
2026-10-12 16:17:29 +08:00
2026-10-12 09:28:59 +08:00
2026-10-11 00:03:20 +08:00
2026-10-11 08:27:46 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-08 13:24:24 +08:00
2026-10-08 13:24:24 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 04:07:14 +08:00
2026-10-10 03:14:37 -07:00
2026-10-10 14:02:02 +08:00
2026-10-10 13:21:13 +08:00
2026-10-10 03:52:13 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00
2026-10-12 12:37:00 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 09:28:59 +08:00
2026-10-11 04:43:02 +08:00
2026-10-10 06:34:21 +08:00
2026-10-10 06:34:21 +08:00
2026-10-11 04:43:02 +08:00
2026-10-11 00:03:20 +08:00
2026-10-10 02:07:30 +08:00
2026-10-12 04:07:14 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 04:12:14 +08:00
2026-10-12 01:06:33 +08:00
2026-10-12 10:03:17 +08:00
2026-10-13 17:42:41 +08:00
2026-10-13 03:47:45 +08:00
2026-10-13 07:24:45 +09:00
2026-10-09 18:30:31 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 18:30:31 +08:00
2026-10-09 20:18:52 +08:00
2026-10-10 05:11:38 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 22:16:44 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 14:39:06 +08:00
2026-10-12 01:06:33 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 15:58:25 +08:00
2026-10-11 07:22:50 +08:00
2026-10-13 14:39:06 +08:00
2026-10-10 21:04:05 -07:00
2026-10-12 01:17:58 +08:00
2026-10-12 01:17:58 +08:00
2026-10-11 18:39:49 +08:00
2026-10-12 01:06:33 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 02:21:35 +08:00
2026-10-12 12:37:00 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-14 00:36:37 +08:00
2026-10-11 01:54:36 +08:00
2026-10-10 03:52:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 21:04:05 -07:00
2026-10-10 03:52:35 +08:00
2026-10-13 06:05:29 +09:00
2026-10-13 14:46:28 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 07:24:45 +09:00
2026-10-08 04:03:23 +08:00
2026-10-12 01:10:31 +08:00
2026-10-09 22:46:08 +08:00
2026-10-11 19:16:32 +08:00
2026-10-09 23:35:19 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 21:26:13 +08:00
2026-10-13 20:10:39 +08:00
2026-10-14 00:06:45 +08:00
2026-10-11 19:16:32 +08:00
2026-10-11 08:20:39 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 23:53:41 +08:00
2026-10-07 19:08:45 +08:00
2026-10-12 09:28:59 +08:00
2026-10-09 22:46:09 +08:00
2026-10-13 14:39:06 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 06:04:58 +09:00
2026-10-10 01:45:00 +08:00
2026-10-13 17:23:36 +08:00
2026-10-14 00:06:45 +08:00
2026-10-10 01:45:01 +08:00
2026-10-12 01:10:31 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 15:46:24 +08:00
2026-10-10 05:56:01 +08:00
2026-10-11 03:20:05 +08:00
2026-10-13 23:36:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 23:59:49 +08:00
2026-10-13 23:59:49 +08:00
2026-10-13 07:24:45 +09:00
2026-10-10 20:27:41 +08:00
2026-10-11 07:22:50 +08:00
2026-10-12 01:10:31 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 04:05:35 +08:00
2026-10-10 00:13:34 -07:00
2026-10-07 17:16:58 +08:00
2026-10-11 04:05:35 +08:00
2026-10-13 16:08:41 +08:00
2026-10-10 13:47:15 +08:00
2026-10-13 21:26:13 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 21:26:13 +08:00
2026-10-10 14:04:31 +08:00
2026-10-13 21:26:13 +08:00
2026-10-11 03:20:05 +08:00
2026-10-10 01:45:00 +08:00
2026-10-13 15:58:25 +08:00
2026-10-10 01:45:01 +08:00
2026-10-11 09:25:32 +08:00
2026-10-13 16:08:41 +08:00
2026-10-13 06:04:21 +09:00
2026-10-11 03:36:35 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 03:53:50 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 03:52:35 +08:00
2026-10-13 21:26:13 +08:00
2026-10-13 06:04:21 +09:00
2026-10-09 20:18:52 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 20:53:47 +08:00
2026-10-13 15:58:25 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 15:58:25 +08:00
2026-10-07 17:16:58 +08:00
2026-10-12 01:10:31 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 16:08:41 +08:00
2026-10-09 20:18:52 +08:00
2026-10-11 07:22:50 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 14:51:23 +08:00
2026-10-12 04:07:14 +08:00
2026-10-11 07:59:47 +08:00
2026-10-11 08:27:46 +08:00
2026-10-13 14:39:06 +08:00
2026-10-13 04:12:14 +08:00
2026-10-13 23:47:03 +08:00
2026-10-11 01:36:12 +08:00
2026-10-13 21:45:07 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 04:12:14 +08:00
2026-10-13 23:47:03 +08:00
2026-10-13 21:45:07 +08:00
2026-10-11 01:36:12 +08:00
2026-10-13 20:10:10 +08:00
2026-10-12 10:03:17 +08:00
2026-10-13 22:16:44 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 10:03:17 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00