6218d289e2
fix(browser): advertise zero-based units for runtime source coordinates ( #1085 )
...
* fix(browser): advertise zero-based units for runtime source coordinates
inspect_web_event_listeners and observe_web_execution return CDP
callsite, listener and resource_start line_number/column_number values
unchanged: zero-based lines and UTF-16 columns. Neither the advertised
output schema nor docs/web-runtime.md said so. trace_web_source_location
takes one-based lines, so a caller chaining a listener location into it
lands one line early.
Describe the units on the shared schema fields, which reach both tools'
advertised output schemas, and document the conversion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* fix(browser): describe runtime positions relative to the enclosing resource
For an inline <script>, CDP reports listener and callsite positions
relative to the HTML document, and resource_start is where the script
text starts in that document. A real headless Chromium 155 page showed
this: a listener on HTML line 6 came back as line_number 5, with
resource_start {3, 8}. Describe all positions as relative to the
enclosing resource. Document that inline-script positions must have
resource_start subtracted, plus one added to the line, before
trace_web_source_location.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* docs(browser): clarify runtime-to-source coordinate conversion
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
Co-authored-by: N0zoM1z0 <1705004398@qq.com >
2026-10-09 00:22:18 +08:00
..
2026-10-07 23:00:22 +08:00
2026-10-08 13:43:30 +00:00
2026-10-08 15:32:05 +08:00
2026-10-08 00:52:37 +08:00
2026-10-08 21:32:48 +08:00
2026-10-08 00:03:36 +08:00
2026-10-08 16:50:31 +08:00
2026-10-09 00:04:35 +08:00
2026-10-08 07:53:41 +08:00
2026-10-08 15:32:05 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:29:43 +08:00
2026-09-29 17:36:26 +08:00
2026-10-05 17:29:20 +08:00
2026-09-29 07:08:46 +08:00
2026-10-08 01:33:39 +08:00
2026-10-08 01:33:39 +08:00
2026-10-06 00:50:38 +08:00
2026-09-29 16:29:23 +08:00
2026-10-06 16:26:40 +08:00
2026-10-06 04:55:26 +08:00
2026-10-07 11:40:34 +08:00
2026-10-07 17:57:33 +08:00
2026-10-07 10:31:17 +00:00
2026-10-08 12:28:34 +08:00
2026-10-08 12:28:34 +08:00
2026-10-05 20:09:45 +08:00
2026-10-05 20:09:45 +08:00
2026-10-06 16:26:40 +08:00
2026-10-07 09:10:29 +00:00
2026-09-29 12:42:08 +08:00
2026-07-14 20:24:12 +09:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-05 20:16:44 +08:00
2026-10-08 01:10:53 +08:00
2026-10-07 21:45:07 +08:00
2026-10-07 21:45:07 +08:00
2026-10-08 01:08:31 +08:00
2026-10-08 00:52:37 +08:00
2026-10-06 06:02:02 +08:00
2026-10-05 21:15:04 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-09-29 17:00:06 +08:00
2026-10-06 04:55:26 +08:00
2026-10-08 00:52:37 +08:00
2026-10-07 13:00:24 +08:00
2026-10-06 02:08:42 +08:00
2026-10-07 11:40:24 +08:00
2026-10-07 17:03:44 +08:00
2026-10-07 17:03:44 +08:00
2026-10-08 01:10:53 +08:00
2026-10-07 21:16:44 +05:30
2026-10-07 21:16:44 +05:30
2026-10-06 04:55:26 +08:00
2026-10-05 21:15:04 +08:00
2026-10-08 01:10:53 +08:00
2026-10-08 04:03:24 +08:00
2026-10-06 11:54:55 +08:00
2026-10-08 04:03:23 +08:00
2026-09-29 08:07:24 +08:00
2026-10-05 17:29:20 +08:00
2026-10-06 19:53:08 +08:00
2026-10-05 17:29:20 +08:00
2026-08-11 18:04:36 +08:00
2026-10-08 04:03:23 +08:00
2026-10-08 04:03:24 +08:00
2026-10-05 17:29:20 +08:00
2026-10-06 16:26:40 +08:00
2026-10-06 16:26:40 +08:00
2026-10-05 20:09:45 +08:00
2026-10-05 20:09:45 +08:00
2026-10-05 15:32:58 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-09-29 14:53:50 +08:00
2026-10-05 17:29:20 +08:00
2026-10-08 07:27:21 -07:00
2026-10-08 07:53:41 +08:00
2026-10-08 07:53:41 +08:00
2026-10-08 07:53:41 +08:00
2026-10-08 07:53:41 +08:00
2026-10-07 23:54:09 +08:00
2026-10-06 04:55:26 +08:00
2026-10-06 04:55:26 +08:00
2026-10-07 23:54:09 +08:00
2026-10-06 04:55:26 +08:00
2026-10-05 17:29:20 +08:00
2026-09-29 07:08:46 +08:00
2026-10-06 00:50:38 +08:00
2026-10-06 05:57:38 +08:00
2026-09-29 17:00:06 +08:00
2026-10-05 20:09:45 +08:00
2026-10-07 22:40:48 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 00:46:21 +08:00
2026-10-08 00:03:36 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 23:46:02 +08:00
2026-10-06 01:01:16 -07:00
2026-10-06 01:01:16 -07:00
2026-10-08 21:32:48 +08:00
2026-10-08 23:46:02 +08:00
2026-10-08 00:31:55 +08:00
2026-10-07 08:12:59 +00:00
2026-10-07 08:12:59 +00:00
2026-10-06 05:57:38 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 16:21:18 +08:00
2026-10-08 14:22:08 +08:00
2026-09-29 13:57:24 +08:00
2026-10-07 22:59:13 +08:00
2026-10-05 17:29:20 +08:00
2026-10-07 22:59:13 +08:00
2026-10-07 10:56:06 +08:00
2026-09-29 14:53:50 +08:00
2026-10-05 17:29:20 +08:00
2026-10-04 16:02:36 +08:00
2026-09-29 08:45:36 +08:00
2026-07-24 14:40:29 +00:00
2026-07-24 13:18:10 +00:00
2026-07-24 13:18:10 +00:00
2026-10-05 17:29:20 +08:00
2026-10-06 04:55:26 +08:00
2026-10-06 02:11:10 -07:00
2026-10-08 04:46:46 +08:00
2026-10-08 04:46:46 +08:00
2026-10-08 00:46:21 +08:00
2026-10-06 16:17:50 +08:00
2026-10-06 16:17:50 +08:00
2026-10-06 00:03:29 -07:00
2026-10-05 20:16:44 +08:00
2026-10-06 04:55:26 +08:00
2026-10-05 22:32:36 -07:00
2026-10-06 01:09:56 -07:00
2026-10-06 00:17:04 -07:00
2026-09-29 14:53:20 +08:00
2026-10-06 00:26:08 -07:00
2026-10-05 23:56:24 -07:00
2026-09-29 16:29:23 +08:00
2026-10-08 01:10:53 +08:00
2026-07-12 03:25:10 +08:00
2026-10-05 22:13:22 -07:00
2026-10-07 13:00:24 +08:00
2026-10-06 05:00:54 +08:00
2026-10-06 05:00:54 +08:00
2026-10-05 20:16:44 +08:00
2026-10-07 11:23:37 +08:00
2026-10-07 11:23:37 +08:00
2026-10-05 21:15:04 +08:00
2026-10-08 00:46:21 +08:00
2026-09-29 11:23:24 +08:00
2026-09-29 11:22:00 +08:00
2026-09-29 16:29:23 +08:00
2026-10-07 23:19:49 +08:00
2026-10-06 05:57:38 +08:00
2026-10-07 12:25:37 +08:00
2026-10-06 01:03:41 +08:00
2026-10-07 18:36:18 +08:00
2026-10-05 20:16:44 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 18:36:18 +08:00
2026-09-29 13:57:24 +08:00
2026-10-08 01:08:31 +08:00
2026-10-05 15:32:58 +08:00
2026-09-29 14:53:50 +08:00
2026-10-07 21:45:07 +08:00
2026-10-07 21:45:07 +08:00
2026-10-04 16:02:36 +08:00
2026-07-14 20:24:12 +09:00
2026-10-07 13:00:24 +08:00
2026-10-07 18:36:18 +08:00
2026-10-07 18:36:18 +08:00
2026-10-07 14:59:52 +08:00
2026-10-08 07:53:41 +08:00
2026-10-08 07:53:41 +08:00
2026-10-09 00:22:18 +08:00
2026-10-09 00:22:18 +08:00
2026-10-04 16:02:36 +08:00
2026-10-07 13:00:24 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 16:21:18 +08:00
2026-09-08 10:59:13 +08:00