Commit Graph
719 Commits
Author SHA1 Message Date
morluto 1c982b82fe test(har): consolidate producer and evidence coverage (#13202) 2026-11-21 20:20:49 +00:00
XiaoBinGan 1aa394d62d fix(browser): report only grammatical CORP and X-Content-Type-Options values
One regex served both headers — `^[a-z][a-z0-9_.\x2d]*$` after lowercasing — so any token counted as a
declared policy. Measured through `safeResponseMetadata`:

| `Cross-Origin-Resource-Policy` | published | Fetch 3.7 |
| --- | --- | --- |
| `same-origin` | `same-origin` | `same-origin` |
| `SAME-ORIGIN` | `same-origin` | none |
| `Same-Site` | `same-site` | none |
| `same-origin-ish` | `same-origin-ish` | none |
| `same_origin` | `same_origin` | none |
| `unsafe-none` | `unsafe-none` | none |

The value ABNF is `%s"same-origin" / %s"same-site" / %s"cross-origin"`, and `%s` is case-sensitive,
so the internal check nulls every other spelling. Case folding made `SAME-ORIGIN` worse than a bad
echo: it turned a value browsers ignore into the enforced spelling, so an observation claimed
embedding isolation the page did not have.

`X-Content-Type-Options` declares exactly one case-insensitive `nosniff`, and "determine nosniff"
tests `values[0]` of the combined header. The strict whole-value match also dropped valid
declarations — `nosniff` sent on two lines, or `nosniff, sniff`, both published nothing. The reader
takes the first list member now.

| `X-Content-Type-Options` | before | after |
| --- | --- | --- |
| `nosniff` | `nosniff` | `nosniff` |
| `NOSNIFF` | `nosniff` | `nosniff` |
| `nosniff\nnosniff` | none | `nosniff` |
| `nosniff, sniff` | none | `nosniff` |
| `sniff, nosniff` | none | none |
| `nosniff-ish` | `nosniff-ish` | none |

Each header has its own grammar now, and `policyToken` is gone.

`src/browser/CdpSafeMetadata.test.ts` — 133 passing, 17 new cases. Reverting either reader fails
them.
2026-11-21 21:10:02 +01:00
morluto 9230f698b3 fix(web): retain Chromium navigation kind in session evidence (#13194)
* fix(web): retain Chromium navigation kind in session evidence

* test(web): use native reload event shape in the shared timeline fixture
2026-11-21 19:47:52 +00:00
morluto 3130adbb1b perf(web): stop repeated accessibility reads after method refusal (#13191) 2026-11-21 19:26:23 +00:00
Adolanium 947fa8f14d fix(browser): separate the decoder CPU budget from an inherited ceiling
A SIGXCPU at the requested budget is the decoder's own ceiling. Raising RLIMIT_CPU does not extend it. A lower recorded ceiling remains an inherited limit. A failed close of the CPU record stays on the decoder scope and does not skip that classification.
2026-11-21 20:08:53 +01:00
Adolanium d6a5b32ed0 fix(browser): share the capture resource-constraint constructor
Static checks reject a second AnalysisResourceConstraintError in CaptureFailures.ts. SIGXCPU still reports the recorded ceiling and tells the caller to raise RLIMIT_CPU. The CPU record is read through the stable artifact owner, so a failed close stays on the decoder scope.
2026-11-21 20:08:53 +01:00
Adolanium 39ade5694b fix(browser): name the CPU ceiling when mitmproxy dies with SIGXCPU
A tighter inherited RLIMIT_CPU is kept, and that death had no reply. The decoder records the installed ceiling, and SIGXCPU becomes a CPU resource constraint that names it.
2026-11-21 20:08:53 +01:00
morluto 5c390198f7 fix(web): retain CDP scope and request identity during session preparation (#13188) 2026-11-21 19:05:13 +00:00
morluto c0963732a7 fix(web): keep unreadable cookie partitions incomplete (#13187) 2026-11-21 19:00:00 +00:00
morluto 4807b31749 fix(web): require root identity in CDP session and runtime captures (#13186) 2026-11-21 18:55:15 +00:00
Lewis WangandClaude Opus 5.5 af0d69ee91 fix(har): keep Chromium DevTools captures that report an empty server address (#13027)
Chromium DevTools writes serverIPAddress from NetworkRequest.remoteAddress(),
which starts as "" and stays empty when a request has no remote endpoint,
such as a refused connection, an aborted request or an internal redirect.
har-schema requires an IPv4 or IPv6 value, so inspect_web_network_capture
refused the whole export at the first such entry.

For the declared WebInspector 537.36 profile, an empty serverIPAddress is
omitted from the validation copy only, as bracketed IPv6 already is. Reported
Evidence keeps the empty value, and the record gains a limitation that the
server address is unknown. Other producers' empty addresses still fail
validation.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:42:16 +01:00
morluto 48a2ad5e0b test(web): consolidate CDP frame and session identity checks (#13174) 2026-11-21 18:09:48 +00:00
morluto b95bd814a7 test(web): consolidate CDP discovery and HTTP response contracts (#13173) 2026-11-21 13:05:05 -05:00
morluto 6818b01d5a perf(web): normalize each browser redaction marker once (#13172) 2026-11-21 18:02:47 +00:00
morluto 03b99c2bcf fix(web): align scenario schema guidance with admitted inputs (#13170) 2026-11-21 17:56:08 +00:00
morluto 0fa220c735 test(web): consolidate scenario input diagnostics (#13159) 2026-11-21 12:20:56 -05:00
morluto 52437cd431 test(web): consolidate browser opening deadlines and late release checks (#13158) 2026-11-21 17:12:52 +00:00
morluto 6961a8c47c test(web): consolidate Chromium startup contract checks (#13157) 2026-11-21 17:08:12 +00:00
morluto 32549cb3f5 test(web): consolidate attached emulation and CDP admission checks (#13156) 2026-11-21 17:04:53 +00:00
morluto c23aa499f6 test(web): consolidate browser provider observation checks (#13154)
* test(web): consolidate browser provider observation checks

* test(web): update lifecycle operation evidence after consolidation
2026-11-21 11:57:35 -05:00
morluto 3704869199 test(web): exercise provider cancellation through a real session boundary (#13155) 2026-11-21 16:57:14 +00:00
morluto 5dad3b1f29 test(web): consolidate provider shutdown and cleanup recovery checks (#13152)
* test(web): consolidate provider shutdown and cleanup recovery checks

* test(web): point retry evidence at staged provider recovery
2026-11-21 16:56:44 +00:00
morluto f609aa3393 test(web): consolidate browser artifact privacy checks (#13150) 2026-11-21 16:44:11 +00:00
morluto 560de528a3 test(web): consolidate scenario deadline and diagnostic checks (#13149) 2026-11-21 11:42:37 -05:00
morluto 436977b0e9 test(web): exercise browser setup recovery and cleanup grace (#13148) 2026-11-21 16:36:35 +00:00
morluto ad0bfa5bd0 test(web): consolidate service-worker initialization cancellation checks (#13147) 2026-11-21 16:29:00 +00:00
morluto 65038faf7e test(web): consolidate browser session cleanup receipts (#13146) 2026-11-21 16:25:53 +00:00
morluto cc814643ab test(web): consolidate service-worker policy restoration checks (#13145) 2026-11-21 11:24:10 -05:00
morluto 811e26d339 test(web): consolidate browser session initialization cleanup checks (#13144)
* test(web): consolidate browser session initialization cleanup checks

* test(web): join late browser lease in teardown
2026-11-21 16:21:10 +00:00
morluto ad6e511b60 test(web): consolidate attached navigation stop checks (#13143) 2026-11-21 16:15:43 +00:00
morluto 81b293448e test(web): tighten event receipt and listener budget checks (#13142) 2026-11-21 11:10:19 -05:00
morluto bbadf6ebf4 test(web): consolidate final event privacy checks (#13138)
* test(web): consolidate final event privacy checks

* test(web): remove unused event polling import
2026-11-21 11:06:31 -05:00
morluto ad20b4e1fc test(web): consolidate event admission budget checks (#13137) 2026-11-21 10:59:51 -05:00
morluto 3eff450977 test(web): consolidate browser event ownership checks (#13135) 2026-11-21 10:58:36 -05:00
morluto edff877c48 test(web): consolidate request schema validation checks (#13132)
* test(web): consolidate request schema validation checks

* test(web): keep unbound encoded JSON literal coverage
2026-11-21 10:52:55 -05:00
morluto 4a249dfde6 test(web): consolidate saved response retention checks (#13133) 2026-11-21 15:49:28 +00:00
morluto c53c7018e4 test(web): consolidate marked response redaction checks (#13131) 2026-11-21 10:45:10 -05:00
morluto c3dbbd4ab5 test(web): verify network content source event provenance (#13130) 2026-11-21 10:41:17 -05:00
morluto 270323942b test(web): consolidate request credential evidence checks (#13129) 2026-11-21 15:36:18 +00:00
morluto c20ee87b2b test(web): consolidate network content evidence checks (#13128) 2026-11-21 15:35:30 +00:00
morluto c9a6f5dedc test(web): consolidate transaction admission and omission checks (#13127) 2026-11-21 15:28:45 +00:00
morluto 9a9ee6cf3d test(web): consolidate network capture queue lifecycle checks (#13125) 2026-11-21 15:25:13 +00:00
morluto c09a27770f test(web): exercise encoded query limits across heap sizes (#13123)
* test(web): exercise encoded query limits across heap sizes

* test(web): isolate capacity fixture from browser globals
2026-11-21 15:25:09 +00:00
morluto b5cb5e2f0d test(web): consolidate saved scenario path checks (#13122) 2026-11-21 10:18:21 -05:00
morluto 648d1f8f9d test(web): consolidate UI response observation lifecycle checks (#13121) 2026-11-21 15:14:26 +00:00
morluto 6ae91b2a10 test(web): consolidate scenario response body bounds (#13120) 2026-11-21 15:12:13 +00:00
morluto 6ecafb590e test(web): control scenario request deadline phases (#13119) 2026-11-21 10:06:56 -05:00
morluto fba0e43af3 test(web): consolidate exact response number checks (#13118) 2026-11-21 10:03:33 -05:00
morluto ad4c558789 test(web): consolidate scenario request cleanup checks (#13116) 2026-11-21 15:02:30 +00:00
morluto 447b79139c test(web): consolidate scenario storage identity checks (#13115) 2026-11-21 14:47:45 +00:00