Repository navigation
fix(har): retain Playwright bracketed IPv6 address spelling - #3161
wunianze666-netizen wants to merge 2 commits into
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Adapt observed Playwright 1.58.2 bracketed IPv6 addresses only in the disposable HAR validation copy. Preserve the producer spelling and per-entry limitation through public CLI and MCP workflows, retaining existing safe-number admission policy. Reviewed-PR: #3161 Co-authored-by: wunianze666-netizen <[email protected]>
|
Superseded by |
Playwright 1.58.2 can copy Chromium's bracketed IPv6
remoteIPAddressinto HARserverIPAddress. The unchanged HAR schema expects an IP literal and rejects the entire archive. This reproduced with four public HARvest captures: GitHub, npm website (corpus filename npm-registry), Open-Meteo and Wikipedia (279 records total).The HAR adapter now removes brackets only in its disposable validation projection, only for the exact observed Playwright 1.58.2 declaration and a valid enclosed IPv6 value. Original reported addresses, extensions, capture bytes and artifact digests stay intact. Invalid addresses, bracketed IPv4, ports, zone IDs and other producer/version declarations remain rejected. Producer metadata is still not authenticated.
The existing mitmproxy optional-null compatibility and the new Playwright representation share one producer-gated pass, removing the prior cloned producer/entry-array probe. The guide and packaged skill reference explain the observed profile. The new caveat is emitted only when bracketed IPv6 was actually adapted; unaffected captures preserve their existing Evidence identities.
Validation:
npm run checkandnpm run docs:checkpassed.Pinned original examples (producer authenticity is not independently attested):
Original archives remain local; the regression fixtures are source-owned synthetic inputs. No target traffic was replayed and no model API was called. Full agent token cost and process-family CPU/peak memory are unmeasured; no performance improvement is claimed.