Skip to content

fix(network): report wire headers in cookie-bearing subresource ExtraInfo - #2811

Merged
ldm0 merged 4 commits into
mainfrom
fix/cookie-request-extra-info
Nov 21, 2026
Merged

ldm0 merged 4 commits into
mainfrom
fix/cookie-request-extra-info

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Track: Trajectory Replay (Browser Eval). Replaces part of #758.

Closes #2793.

Problem

For a subresource request that carries cookies, Network.requestWillBeSentExtraInfo listed only the script-set headers plus Cookie (e.g. ['content-type','cookie']), although the wire request also carried Host, Origin, Referer, Content-Length, Sec-Fetch-* and the rest. The same fetch without cookies already reported the full wire headers. Repro: a page served with Set-Cookie: srv=1 running document.cookie="sid=abc";fetch("/api",{method:"POST",body:"hello"}), Network.enable, collect the /api ExtraInfo.

Reproduce (steps from #2793)

Serve this page with Set-Cookie: srv=1:

<script>document.cookie="sid=abc";fetch("/api",{method:"POST",body:"hello"})</script>

With Network.enable, collect the requestWillBeSentExtraInfo for /api.

Expected (Chromium)

The header names are accept, accept-encoding, accept-language, connection, content-length, content-type, cookie, host, origin, referer, sec-ch-ua*, sec-fetch-* and user-agent.

Actual

Only ['content-type','cookie'] are present, although the wire request carried Referer, Origin, Content-Length and the rest. Before any cookie exists in the session, the same fetch produces a complete ExtraInfo.

Change

  • Report the request headers observed by the HTTP transport and the associated Cookie access results as soon as each hop sends its headers. Slow requests expose their ExtraInfo while the response is pending.
  • Publish the next hop’s Network.requestWillBeSent with the preceding redirect response before publishing that hop’s Network.requestWillBeSentExtraInfo. Include the matching redirect Network.responseReceivedExtraInfo when the preceding response was observed on the wire. Redirects keep the same requestId. An abort while waiting for the destination response preserves both hops and their Cookie attribution.
  • Use the same send-time reporting for page XHR and fetch() requests resumed through the Fetch domain. Their ExtraInfo uses the network ID already announced at the Fetch pause. If interception overrides the request body, Network.getRequestPostData keeps the dispatched bytes under that ID.
  • Use the same redirect response ExtraInfo handling for intercepted subresources with a wire response, including Stylesheet. Child Document redirects still publish through navigation. A response-stage or URL-nonmatching resource can announce its initial request from the captured snapshot using the same Network ID. This also covers a cached redirect before the first wire observation. CSS background images keep the initiator recorded by their continuation.
  • Deduplicate request ExtraInfo by request handle and redirect hop. Response processing can still use captured headers for requests without live observations. Wire headers are reported for dispatched HTTP hops.

Verification

  • The gated HTTP regression tests hold each response until the corresponding ExtraInfo arrives. They cover ordinary and intercepted XHR redirects, XHR abortion after the second hop in both paths, and an intercepted page fetch() redirect. The tests check event order, shared request IDs, wire headers, the Cookie report for each hop, and exactly one request ExtraInfo per hop.
  • The stylesheet regression checks the shared request ID, two request ExtraInfo events, the redirect flag, and response ExtraInfo for both the 307 and 200.
  • The five page XHR/fetch redirect checks and two existing multi-session intercept tests for text and binary POST overrides passed.
  • cargo fmt --all and cargo clippy --workspace --all-targets --all-features -- -D warnings passed.
  • cargo nextest run --no-fail-fast with the ci profile passed 23,871 tests across 210 binaries. The profile skipped 20 tests.
  • The added CDP smoke assertions cover a cached image 301 in a fresh target with response-stage interception. They require two request URLs on one ID, one wire request ExtraInfo, and origin hit counts of one for the redirect and two for the destination across both loads. They also check that CSS background images retain parser without a matching request-stage rule and under response-stage interception.
  • The two affected smoke groups reproduced both regressions on the previous build and passed both repetitions on the updated Moli debug build. The full strict Moli suite passed 128/128 group runs with no flaky groups.
  • Raw CDP and Puppeteer probes passed 16/16 runs, including a synthetic first redirect hop that already had a Fetch announcement. The affected Chromium smoke groups passed 4/4 runs, the Python smoke harness passed 216 tests, and the chromedp check passed.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review of 77a7f09

Changes needed (2)

Moving the cookie report onto one wire-header ExtraInfo is the right approach for moli. Agents read ExtraInfo to see the auth headers a request actually sent, and Chromium also emits that event once the headers are final. The deferral leaves two staged paths uncovered, though:

  1. Requests that fail before a response lose their ExtraInfo and cookie report. moli-protocol/src/domains/network/output_queue.rs:2742: the SubresourceBodyFinished branch never calls append_missing_subresource_request_extra_info. Only response start (:2723) and record completion call it. The renderer sends a bare SubresourceBodyFinished::failed with no response start or record in two places: XHR/EventSource aborted before response (moli-renderer-v8/src/native_bridge/context_host/resource_loading.rs:2109-2129) and a failed resource load (resource_loading.rs:436). On main, a cookie-bearing request on these paths got requestWillBeSent followed by the early cookie ExtraInfo, then loadingFailed. With this PR it gets requestWillBeSent and loadingFailed only, so associatedCookies and the blocked-cookie reasons are gone exactly when an agent is debugging a failed authenticated request. Smallest fix: in the SubresourceBodyFinished branch, call self.append_missing_subresource_request_extra_info(*subresource_index, body.handle(), None, None) before append_subresource_body_finished. The handle set makes this a no-op once an ExtraInfo exists. Add an abort-before-response case to the test.

  2. Redirected requests now pair the first hop's cookie report with the last hop's wire headers. output_queue.rs:2987-2999: network_request_headers comes from NetworkFetchResult::into_parts, which returns the final hop's observation (moli-fetch/src/network_fetch_result.rs:569). This ExtraInfo is the first hop's, because it is emitted before the redirect requestWillBeSent events in emit_staged_subresource_response_started. Take fetch('/old') carrying sid=abc that is redirected (302) to a cookie-less cross-origin URL. Main reported Cookie: sid=abc for /old. This PR reports the other origin's Host and no Cookie header, while associatedCookies still lists sid. Smallest fix: use the wire headers only when the response has no redirects. When response.redirect_chain() (or the record's chain) is non-empty, use the staged headers for this ExtraInfo, which is main's behaviour for a cookie-bearing first hop.

Other checks:

  • Duplicates: none found. The staged start no longer emits an ExtraInfo, and the handle set guards response start against record completion. The complete-record path, navigations, workers and service-worker diagnostics are unchanged.
  • Ordering: the ExtraInfo still precedes responseReceived.
  • Requests without cookies: one hash insert and one lookup each; negligible.
  • The new test fails without the fix (no host).
  • CI: Clippy, Nextest and CDP smoke were still pending at review time.
  • Picture: pending.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review of 9c2b5ba

Changes needed (1)

Round-1 item (1) is fixed. SubresourceBodyFinished now emits the missing ExtraInfo (output_queue.rs:2744-2752), the per-request set prevents a second one, and the abort test covers the case. Round-1 item (2) no longer pairs a first-hop cookie report with last-hop headers. However, the guard that fixes it causes a new regression:

  1. The redirect guard drops the wire headers for every cookie-less redirected fetch/XHR. See moli-protocol/src/domains/network/output_queue.rs:2728, :2863-2871 and :3005-3007. On main, a staged request without a cookie report took append_missing_subresource_request_extra_info with network_request_headers and a default report. Its single ExtraInfo carried the full wire set even when the response had a redirect chain. With .filter(|_| network_headers_are_first_hop), the same request now reports only the script-set headers: {} for a plain fetch(url), {content-type} for a POST. Playwright request.allHeaders() and other consumers lose Host, User-Agent, Referer, Accept and Sec-Fetch-*.
    Evidence from the released v1.1.23 binary over CDP (page on localhost, no cookies): fetch("/r302same") gives rWBS, then ExtraInfo [accept, accept-encoding, accept-language, host, referer, sec-ch-ua*, sec-fetch-*, user-agent], then the redirect rWBS. A 307 POST gives the same plus content-length, content-type, origin. That redirect rWBS comes from emit_staged_subresource_response_started, so the response does reach this path with a non-empty redirect_chain(), and the guard fires. Main's append_missing_* code is the same as v1.1.23 for this case.
    The body says "with redirects the staged headers are used, as on main". That holds only for requests with a cookie report.
    Smallest fix (also the best one for moli): the first hop's wire headers are already in the response. Transport fills redirect_chain[0].response_extra_info.request_extra_info.headers for each network redirect (moli-fetch/src/runtime.rs:1683-1697, :1984-1998), and NavigationRedirect carries it into SubresourceResponseStarted and the record. Pass redirect_chain().first().and_then(|r| r.response_extra_info.as_ref()).map(|e| e.request_extra_info.headers.as_slice()) when the chain is non-empty, and network_request_headers() otherwise. Fall back to staged headers only when neither exists. This removes the bool parameter, keeps cookie-less redirects as on main, and gives redirected cookie requests correct first-hop wire headers.

On the disclosed redirect gap: on v1.1.23, a redirected cookie-bearing fetch does produce a first-hop ExtraInfo. It reaches the staged path for same-origin 302, 307 POST and cross-origin 302. Example: fetch("/r302x") (cookie srv=1; sid=abc, then 302 to another port) gives rWBS, then ExtraInfo ["cookie"], then the redirect rWBS. So "a redirected fetch emits no first-hop ExtraInfo at all, so it does not reach the staged path" does not match the released binary. Current main could not be built here, so a later change on main remains possible. A redirect test is still feasible in the existing axum + TestContext harness: add a /r that 302s to /final, then assert that the first-hop ExtraInfo contains host, plus Cookie in the cookie case. That test would catch the regression above.

Rest of the diff: the fetch-pause-announced case now gets the single ExtraInfo it lacked on main (the pause-side rWBS emits none, events.rs:421-424), which is correct. The worker and other callers keep true, so they are unchanged. The new set grows like completed_subresource_handles. CI on 9c2b5ba is still running (Build, Clippy, Nextest, CDP smoke pending; Format, Node, Python and Windows pass).

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review of 5230c78

No blocking findings

Verified in code against origin/main:

  • Rule (output_queue.rs append_missing_subresource_request_extra_info): headers = observed wire headers unless redirected && staged cookie report, then staged headers; cookie report = record report, falling back to the staged one. The record's report is copied from the staged request (moli-page-types/src/lib.rs ~2091/2125), so redirected-cookie output keeps the same headers and report as main's early ExtraInfo (both go through emit_request_will_be_sent_extra_info). Cookie-less redirects and cookie-less non-redirects take the same branch as main. The only content change is cookie + no redirect, which now gets the full wire set. The fetch-paused case goes from 0 to 1 ExtraInfo (the pause side emits none, see fetch/subresource.rs ~950), and abort-before-response now gets 1 from the SubresourceBodyFinished branch.
  • One per request: subresource_request_extra_info_handles is inserted in the single append point and checked before every append. The early path is disabled only for the staged start (backlog.rs:458). All other callers pass true.
  • Order: the append runs before append_subresource_response_started on both the response-start and record-completion paths, so it comes before responseReceived. The updated test checks this.
  • The body accurately describes the unchanged redirected-cookie behavior.

Optional notes:

  1. Timing: a cookie-bearing request now gets its ExtraInfo when the response starts or the request fails, not at requestWillBeSent. A pending long-poll or slow request therefore has no ExtraInfo until headers arrive, while main and Chromium report it at send. This follows from wire headers being known only at response time, and I think it is acceptable. "exactly as on main" is accurate for the content of the redirected case, not for when it is emitted.
  2. CI (Clippy, Nextest, CDP smoke, release builds) was still pending at review time.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Sequential Navigation Soak A/B

✅ HEAD completed the 200-navigation resilience and memory observation.

One browser process, one target, and one CDP session navigate CSDN → SegmentFault → Huaban → example.com repeatedly. This run issued 200 Page.navigate commands per binary.

Common ancestor c4465be52f → HEAD 072fc850e9; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 199 / 200 199 / 200
Failures / recovered 1 / 1 1 / 1
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 502.1 s 519.3 s

A public-page failure is reported separately from an unrecoverable session. The soak requires all navigation attempts, zero failed recovery, zero lifecycle/network ordering violations, and complete resource evidence.

Process-tree memory

Metric Base HEAD Δ
Boundary samples 200 200 0
Boundary RSS samples 200 200 0
Boundary PSS samples 200 200 0
Periodic peak RSS 242.8 MiB 243.0 MiB +0.2 MiB
Periodic peak PSS 239.3 MiB 240.3 MiB +1.1 MiB
RSS · first 10 avg 158.0 MiB 158.8 MiB +0.8 MiB
RSS · last 10 avg 180.9 MiB 179.0 MiB -2.0 MiB
RSS · last − first window +22.9 MiB +20.1 MiB -2.7 MiB
RSS · warm slope / 100 nav +4.2 MiB +3.0 MiB -1.2 MiB
PSS · first 10 avg 154.5 MiB 155.5 MiB +1.0 MiB
PSS · last 10 avg 177.5 MiB 175.5 MiB -2.0 MiB
PSS · last − first window +23.0 MiB +20.0 MiB -3.0 MiB
PSS · warm slope / 100 nav +4.4 MiB +3.1 MiB -1.3 MiB
Peak file descriptors 75 73 -2
Peak threads 36 35 -1

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 173.0 MiB 154.8 MiB 206.9 MiB 169.6 MiB 151.5 MiB 66
51–100 177.2 MiB 188.4 MiB 212.2 MiB 173.9 MiB 184.9 MiB 66
101–150 177.4 MiB 160.0 MiB 212.0 MiB 174.0 MiB 157.1 MiB 65
151–200 179.3 MiB 135.6 MiB 213.3 MiB 176.1 MiB 132.2 MiB 66

Raw reports and per-navigation boundary samples: workflow run and full sequential-navigation-soak-results artifact.

Public-site timing and memory are observational. Use the A/B deltas and trend shape as evidence, not as a deterministic performance threshold.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Spider Bench A/B

✅ All benchmark browser service runs completed; results are informational.

Public HEAD: 189 / 240 rows; 39 / 48 sites produced rows; 9 unexpected empty sites.

✅ Deterministic fixture contract is clean.

Common ancestor c4465be52f7f → HEAD 072fc850e9a8; benchmark order: base-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 189 / 240 189 / 240 0 (0.00%)
Contract fill 78.75% 78.75% 0.00 pp (0.00%)
Sites with rows 39 / 48 39 / 48 0 (0.00%)
Sites meeting row contract 37 / 48 37 / 48 0 (0.00%)
Unexpected empty sites 9 9 0 (0.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 37; HTTP error + rows: 2; empty: 8; snapshot error + empty: 1 extracted: 38; HTTP error + rows: 1; empty: 8; snapshot error + empty: 1 —
Observed duration 44.47 s 48.78 s +4.31 s (+9.69%)
Estimated CPU 38.41 s 38.58 s +0.16 s (+0.42%)
Peak PSS 232.21 MiB 243.97 MiB +11.76 MiB (+5.06%)
Peak RSS 234.38 MiB 247.20 MiB +12.82 MiB (+5.47%)
Peak threads 33 31 -2 (-6.06%)
Mismatched sites 0 0 0
Timeout with items 0 0 0
Category rows Base HEAD Δ
news 35 / 40 35 / 40 0
stocks 20 / 40 20 / 40 0
tech 35 / 40 35 / 40 0
sports 27 / 40 27 / 40 0
games 37 / 40 37 / 40 0
life 35 / 40 35 / 40 0

Public-site content, timing, and memory are noisy. This single A/B run reports evidence only; site outcome counts explain missing rows without treating them as a deterministic regression.

CPU and memory timelines

These are bounded 40-point views of the same complete process-tree samples used by the HTML report. CPU uses 100% per occupied logical core; memory lines are RSS first and PSS second when complete PSS samples are available.

Base

xychart-beta
    title "Base CPU"
    x-axis "Elapsed seconds" [1.037, 2.538, 3.54, 4.541, 5.043, 6.043, 7.045, 7.545, 8.546, 9.547, 11.05, 12.051, 13.053, 14.554, 15.555, 17.055, 18.056, 19.058, 20.559, 21.559, 23.061, 24.061, 25.563, 26.565, 27.568, 29.07, 30.071, 31.572, 32.573, 33.575, 35.077, 36.079, 37.581, 38.581, 39.581, 41.083, 42.085, 43.586]
    y-axis "CPU percent" 0 --> 200
    line [0, 113.85, 107.82, 139.71, 145.65, 148.06, 105.82, 167.7, 135.96, 125.77, 103.74, 77.93, 41.9, 85.98, 17.97, 94.01, 105.95, 0, 37.95, 44, 105.69, 103.95, 101.87, 123.85, 43.88, 111.71, 71.93, 83.93, 23.98, 7.98, 105.95, 85.81, 17.95, 14, 115.93, 19.98, 97.89, 125.81]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.037, 2.538, 3.54, 4.541, 5.043, 6.043, 7.045, 7.545, 8.546, 9.547, 11.05, 12.051, 13.053, 14.554, 15.555, 17.055, 18.056, 19.058, 20.559, 21.559, 23.061, 24.061, 25.563, 26.565, 27.568, 29.07, 30.071, 31.572, 32.573, 33.575, 35.077, 36.079, 37.581, 38.581, 39.581, 41.083, 42.085, 43.586, 44.472]
    y-axis "Memory MiB" 0 --> 500
    line [14.1, 59.63, 108.79, 111.63, 140.29, 162.38, 207.83, 226.03, 234.38, 149.4, 145.78, 167.11, 154.68, 154.88, 132.84, 123.16, 142.07, 147.44, 123.25, 127.25, 122.44, 143.8, 167.97, 187.53, 200.13, 144.98, 150.12, 137.32, 143.11, 138.46, 141.45, 184.21, 216.36, 145.94, 135.41, 159.19, 151.22, 151.52, 151.59, 0]
    line [10.99, 56.35, 105.46, 108.32, 137.33, 159.16, 204.51, 222.71, 232.21, 145.03, 142.43, 164.43, 151.34, 151.53, 130.11, 119.81, 138.74, 144.07, 119.9, 123.92, 119.09, 139.66, 165.05, 184.18, 196.78, 141.62, 146.74, 133.97, 139.85, 135.19, 138.09, 180.68, 213, 142.58, 132.06, 155.89, 147.86, 148.17, 148.25, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.536, 2.537, 4.039, 5.039, 5.539, 7.041, 8.042, 9.543, 11.047, 12.547, 13.549, 15.051, 16.551, 17.053, 17.553, 19.054, 20.557, 22.06, 23.062, 24.563, 26.066, 27.067, 27.568, 28.569, 30.07, 31.57, 32.572, 34.075, 35.577, 37.08, 38.083, 39.585, 41.085, 42.087, 43.588, 45.091, 46.593, 47.594]
    y-axis "CPU percent" 0 --> 200
    line [47.95, 95.81, 106.01, 123.97, 134.04, 145.7, 93.8, 95.92, 117.71, 115.96, 15.96, 25.93, 6, 0, 8, 0, 147.93, 2, 27.95, 87.99, 121.74, 103.93, 157.83, 109.88, 115.84, 67.98, 109.88, 51.88, 71.86, 35.92, 123.73, 125.74, 113.88, 4, 0, 149.85, 103.93, 123.83]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.536, 2.537, 4.039, 5.039, 5.539, 7.041, 8.042, 9.543, 11.047, 12.547, 13.549, 15.051, 16.551, 17.053, 17.553, 19.054, 20.557, 22.06, 23.062, 24.563, 26.066, 27.067, 27.568, 28.569, 30.07, 31.57, 32.572, 34.075, 35.577, 37.08, 38.083, 39.585, 41.085, 42.087, 43.588, 45.091, 46.593, 47.594, 48.782]
    y-axis "Memory MiB" 0 --> 500
    line [13.99, 88.77, 105.22, 122.75, 159.64, 139.21, 145.14, 151.66, 142.76, 146.47, 137.18, 135.88, 147.08, 124.49, 124.87, 124.09, 124.59, 141.02, 122.29, 128.09, 150.63, 135.92, 141.45, 187.71, 187.53, 181.86, 143.94, 170.37, 134.11, 142.71, 137.27, 177.13, 247.2, 158.6, 135.39, 133.12, 162.34, 154.53, 164.06, 0]
    line [10.89, 85.5, 102.13, 120, 156.71, 135.92, 141.77, 148.44, 139.93, 143.56, 133.88, 132.58, 143.78, 121.18, 121.56, 120.79, 121.28, 137.38, 118.99, 124.79, 147.36, 134.66, 138.17, 182.82, 184.5, 178.48, 140.68, 167.12, 130.68, 139.42, 133.98, 174.1, 243.97, 155.31, 132.1, 129.83, 159.05, 151.24, 160.79, 0]
Loading

Deterministic fixture · required contract

The fixture exercises 15 routes: 8 are expected to emit rows and 7 intentionally exercise empty, loading, or timeout behavior.

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 40 / 40 40 / 40 0 (0.00%)
Contract fill 100.00% 100.00% 0.00 pp (0.00%)
Sites with rows 8 / 15 8 / 15 0 (0.00%)
Sites meeting row contract 15 / 15 15 / 15 0 (0.00%)
Unexpected empty sites 0 0 0
Partial-row sites 0 0 0
Site outcomes extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 —
Observed duration 19.84 s 19.85 s +0.00 s (+0.02%)
Estimated CPU 0.41 s 0.41 s 0.00 s (0.00%)
Peak PSS 71.43 MiB 71.51 MiB +0.08 MiB (+0.11%)
Peak RSS 74.75 MiB 74.94 MiB +0.20 MiB (+0.26%)
Peak threads 22 22 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0

Full HTML, JSON, CSV, logs, and page snapshots: workflow run and full spider-bench-results artifact.

The public-web A/B is informational. The exact HEAD fixture contract runs as a separate required CI check; timing and public-site content deltas remain non-blocking.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

CI Regression Report

Source CI run · source state at render: in_progress · artifacts: 6/6

Check Status Signal
Release regression ✅ HEAD/base failures 0/0; raw binary +0.017755%
Frontend differential ✅ 1,020/1,020 cases matched; 0 issues
Agent episodes ✅ 8/8 Moli episodes passed; 0 failures
Runtime/CDP contracts ✅ 26 contract cases; 0 failures
CDP smoke ✅ 128/128 groups passed; 2,276 scenarios
WebMainBench ✅ 545/545 completed; 0 unexpected failures
Release regression — ✅ HEAD/base failures 0/0; raw binary +0.017755%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 159.16 MiB 159.19 MiB +28.94 KiB +0.017755%
Stripped binary 107.20 MiB 107.23 MiB +24.00 KiB +0.021863%
gzip binary 53.27 MiB 53.28 MiB +9.22 KiB +0.016908%
Rootfs 166.07 MiB 166.10 MiB +30.00 KiB +0.017641%
gzip rootfs 62.37 MiB 62.38 MiB +11.14 KiB +0.017440%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 26.87 ms 26.84 ms −0.03 ms 5.64 MiB 4.84 MiB −819.00 KiB
CDP first page 47.34 ms 47.50 ms +0.16 ms 5.29 MiB 4.73 MiB −578.50 KiB
CDP warm page 10.54 ms 10.85 ms +0.31 ms 53.90 MiB 53.87 MiB −32.50 KiB
CLI about:blank 11.98 ms 12.80 ms +0.81 ms 5.40 MiB 4.34 MiB −1.05 MiB
CLI local JS 23.90 ms 23.66 ms −0.24 ms 4.21 MiB 4.00 MiB −209.00 KiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 23.17 ms 23.07 ms −0.10 ms 665.00 KiB 666.00 KiB +1.00 KiB 0 0/0
5 26.10 ms 27.38 ms +1.28 ms 13.35 MiB 13.72 MiB +384.00 KiB 0 0/0
10 27.53 ms 27.75 ms +0.21 ms 16.86 MiB 13.30 MiB −3.55 MiB 0 0/0
25 26.46 ms 27.67 ms +1.21 ms 13.33 MiB 13.40 MiB +75.00 KiB 0 0/0
100 26.76 ms 26.60 ms −0.16 ms 30.52 MiB 29.84 MiB −705.50 KiB 0 0/0
Frontend differential — ✅ 1,020/1,020 cases matched; 0 issues
Match DOM mismatch Diagnostic mismatch Moli error Reference error Infrastructure error Mismatched frames Duration
1,020 0 0 0 0 0 0 6m 35.96s
Agent episodes · Moli vs Chromium — ✅ 8/8 Moli episodes passed; 0 failures
Fast contract Episodes Passed Assertions Ready p50 Episode p50
Moli 8 8 47/47 28.47 ms 27.95 ms
Chromium 8 8 47/47 239.90 ms 79.59 ms
Operation p50 Chromium Moli Delta Delta %
navigate 40.37 ms 5.64 ms −34.73 ms −86.02%
observe 0.88 ms 0.90 ms +0.02 ms +2.62%
fill 2.89 ms 3.62 ms +0.73 ms +25.29%
click 5.33 ms 4.03 ms −1.30 ms −24.40%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 72.36 MiB 70.54 MiB 0.79% 10.01% 1 ✅
Chromium 1306.64 MiB 433.44 MiB 0.97% 18.00% 13 ⚠️ PSS partial
Runtime and CDP session contracts — ✅ 26 contract cases; 0 failures
Suite Cases Failures Median case p50 Median case p95 Median peak PSS p50
Synthetic fetch 13 0 23.14 ms 24.07 ms 724.00 KiB
Long-lived CDP session 13 0 17.29 ms 18.48 ms —
CDP smoke — ✅ 128/128 groups passed; 2,276 scenarios

Workers: 4 · cumulative group time: 445.52 s · failed groups: 0

Slowest group Scenarios Duration Status
dom-input 64 20.29 s ✅
dom-input 64 19.58 s ✅
fetch-resource-dispatch 72 18.29 s ✅
fetch-resource-dispatch 72 18.07 s ✅
scrollbar-visibility 22 14.81 s ✅
WebMainBench · 545 pages — ✅ 545/545 completed; 0 unexpected failures
Completed Successful Expected DNS failure Unexpected failures Panics Crashes Timeouts Empty output
545/545 544 1 0 0 0 0 0

Frozen HTML · Linux · --wait done · 45 seconds per page · no retries. Content quality is evaluated separately.

Diagnostics: webmainbench-results — every page's Markdown, stderr, and exit status. Source run and artifacts

All artifact fields are parsed by the trusted default-branch renderer; missing or invalid inputs remain visible as unavailable.

@lanyue-llk
lanyue-llk force-pushed the fix/cookie-request-extra-info branch from 5230c78 to d9e7c6a Compare November 13, 2026 13:50
ldm0 added a commit that referenced this pull request Nov 20, 2026
Integrate PR #2811 with the current per-hop transport observations. Publish request headers and cookie reports when a protocol output transport is bound, and cover redirects and cancellation before the response.
Publish observed request headers and their cookie report per hop through the bound protocol output transport. Cover redirect hops and cancellation before the response.

Co-authored-by: lanyue-llk <270302213+lanyue-llk@users.noreply.github.com>
@ldm0
ldm0 force-pushed the fix/cookie-request-extra-info branch from fba8690 to cb38057 Compare November 20, 2026 05:07
ldm0 added 3 commits November 20, 2026 13:44
Announce redirected subresource hops before projecting their observed headers so cancellation preserves request and cookie attribution. Report intercepted page XHR and fetch requests at send time using their existing Network IDs, preserving redirect response metadata and overridden request bodies.
Publish observed redirect response ExtraInfo at Fetch pauses for all subresources with wire observations. Announce a request when its first transport observation arrives before any pause-side Network start.
Use the first saved snapshot to announce the initial request even when the first transport observation follows a cached hop. Let Fetch announcement tracking suppress duplicate starts and keep the initiator recorded by the resource continuation.
@ldm0
ldm0 merged commit 38eae4c into main Nov 21, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subresource requestWillBeSentExtraInfo drops Referer, Origin, Content-Length and Sec-Fetch-* when the request carries cookies

2 participants