Skip to content

fix(navigation): apply the document and link referrer policy to top-level navigations - #2823

Open
lanyue-llk wants to merge 2 commits into
mainfrom
fix/navigation-referrer-policy
Open

lanyue-llk wants to merge 2 commits into
mainfrom
fix/navigation-referrer-policy

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.

PR #2823 at a glance

Part of #2790 (top-level navigations; iframe `src` loads are not covered here). Replaces part of #758.

Problem. Link, location and form navigations sent the full page URL as Referer even when the page asked for no-referrer or origin, whether through <meta name=referrer>, the Referrer-Policy header, the link's referrerpolicy attribute or rel=noreferrer. This leaks paths, tokens and query strings to the destination. Repro: moli fetch http://127.0.0.1:8000/meta-link --wait networkidle --dump markdown, where the page has <meta name=referrer content=no-referrer> and clicks a link to /t; /t received Referer: http://127.0.0.1:8000/meta-link. Subresource fetch() already honoured the policy.

Reproduce (steps from #2790)

The server returns <p>target</p> for /t and logs the Referer it receives. Case pages:

  • meta-link: <meta name=referrer content=no-referrer><a id=l href="/t">go</a><script>setTimeout(()=>l.click(),50)</script>
  • hdr-link: the same without the meta, served with Referrer-Policy: no-referrer
  • attr-link: <a id=l referrerpolicy=no-referrer href="/t">, then click
  • rel-link: <a id=l rel=noreferrer href="/t">, then click
  • origin-link: <meta name=referrer content=origin>, then a link click
  • meta-loc: the meta, then setTimeout(()=>location.href="/t",50)
  • meta-form: the meta, then <form id=f action=/t></form><script>setTimeout(()=>f.submit(),50)</script>
  • meta-iframe: the meta, then <iframe src="/t">
moli fetch http://127.0.0.1:8000/meta-link --wait networkidle --dump markdown

(or Page.navigate over CDP)

Expected (Chromium)

/t receives no Referer in the no-referrer cases, and http://host/ in origin-link.

Actual

Every case sends the full page URL, for example REFERER http://127.0.0.1:18780/meta-link. Subresource fetch() honors the meta policy, so only navigations are affected.

Change.

  • native_bridge/context_host/navigation.rs: a same-realm location navigation recorded no initiator, so the request fell back to the default policy. The new set_pending_location_navigation_document_initiator(link_policy) marks the page Document as the RendererNavigationInitiator of the navigation that was just recorded. Its policy is the link's own policy if one is given, otherwise the existing document_referrer_policy_for_native_document (meta, then the response header).
  • It is called only where a page starts a navigation: the location setter/assign/replace (not reload()), a hyperlink's top-level target (activation/targets.rs), form submission (forms/submission.rs and the top-target branch in default_action.rs), and navigation.navigate(). Reloads and history traversals record no initiator, exactly as on main, so the commit keeps its previous document.referrer. Navigations from another realm still set their own source, as before.
  • PageScriptHost::hyperlink_referrer_policy(handle) reads an <a>/<area>'s rel=noreferrer (→ no-referrer) or referrerpolicy attribute. It is applied only to that link's own navigation, at the point where that navigation is recorded: the _top target, and the location path when the source element is the link. No host-wide state is held, so a navigation that a navigate handler starts instead uses the Document's policy.
  • runtime/page_vm/followed_navigation.rs: the CLI's followed navigation set only the initiator URL. It now also applies the initiator's request metadata (referrer policy), as the CDP path already does (runtime_load.rs).

Verification. Referer received by /t (local server, moli fetch … --wait networkidle):

case main this branch Chrome
plain link full URL full URL full URL
<meta name=referrer content=no-referrer> + link full URL none none
Referrer-Policy: no-referrer header + link full URL none none
<a referrerpolicy=no-referrer> full URL none none
<a rel=noreferrer> full URL none none
meta origin + link full URL http://127.0.0.1:18790/ origin
meta no-referrer + location.href= full URL none none
meta no-referrer + form.submit() full URL none none
  • New test top_level_navigations_apply_the_document_and_link_referrer_policy (moli-core/tests/fetch/security.rs) runs ten cases and asserts the Referer header on the wire. Besides the eight above, it checks that a link with referrerpolicy=unsafe-url on a no-referrer page sends the full URL, and that a navigate handler which cancels that link and assigns location sends no Referer.
  • New test location_navigations_record_a_document_initiator_but_reloads_do_not (renderer): location.href= records the Document initiator and location.reload() records none.
  • CDP path, moli serve + Runtime.evaluate: after a link click, document.referrer is now http://127.0.0.1:18790/plain-link (v1.1.23: ""). After a following location.reload() it is "", the same as v1.1.23, so reload no longer turns the page's own URL into the referrer.
  • cargo nextest run -p moli-core --test fetch -E 'test(referrer)': 2 passed.
  • cargo nextest run -p moli-core -p moli -E 'test(referrer) | test(referer) | test(navigat) | test(location) | test(form_submi) | test(reload)': 293 passed.
  • cargo nextest run -p moli-renderer-v8 -p moli-protocol -E 'test(location_navigations_record) | test(followed) | test(referrer) | test(referer) | test(location_navigation) | test(hyperlink) | test(anchor) | test(history) | test(reload)': 648 passed.
  • cargo fmt --all clean; cargo clippy -p moli-renderer-v8 -p moli-core --all-targets --all-features -- -D warnings clean (workspace clippy not run locally).
  • Not run locally: the full workspace nextest (the renderer test binary does not link within local RAM); left to CI.
  • Known limit: a top-level navigation started from a same-process child frame uses the page Document's policy, not the frame's. Iframe src loads are a separate request path and stay recorded on Link, form, location and iframe navigations send a full Referer despite no-referrer/origin policies #2790.

Cost. Each page-started top-level navigation builds one small initiator (a URL clone, an origin, and a policy lookup on the Document). Pages that do not navigate are unaffected. Debug builds of main cbf4d01 and this branch, same profile, /usr/bin/time -l, alternating runs, median of 7:

case main wall / max RSS branch wall / max RSS
plain link navigation, --wait networkidle 0.63 s / 92.7 MB 0.63 s / 93.1 MB
meta no-referrer link navigation, --wait networkidle 0.74 s / 92.8 MB 0.72 s / 93.0 MB
ordinary local article (no navigation) 0.09 s / 88.3 MB 0.09 s / 88.3 MB

@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 a0c7113

Changes needed (2)

Picture: pending.

The direction is right for moli. Attaching the source Document as the initiator at the one place where same-realm location navigations are recorded fixes the cause rather than each caller, and it uses the existing policy lookup that subresources already use (meta, then header). Link precedence follows the spec: rel=noreferrer > a valid referrerpolicy > the Document policy, and an invalid or empty attribute falls back. Each redirect hop's Referrer-Policy still applies, because the policy goes into referrer_policy and update_referrer_for_redirect overwrites that field per hop. CDP Page.navigate never reaches record_pending_location_navigation_request, so it is unaffected. The extra cost applies only to page-initiated navigations. The new test checks the Referer header as the server receives it and would fail on main.

  1. default_action.rs:1909-1922 + targets.rs:711-725: the link policy stays set while page script runs. anchor_click_navigation dispatches the Navigation API navigate event synchronously (dispatch_top_level_navigation_event_with_source_element, targets.rs:711) before it queues the link's own navigation. If a navigate handler calls e.preventDefault(); location.href = '/x', /x is recorded with the link's policy instead of the Document's. When the link is looser than the page, for example <meta name=referrer content=no-referrer> with <a referrerpolicy=unsafe-url>, that unrelated navigation sends the full URL. This is the kind of leak this PR is meant to close. Smallest fix: drop the host-wide hold. Read the anchor's rel/referrerpolicy from source_handle where the link's own top-level navigation is recorded (queue_top_level_location_navigation, and the same-URL location branch at default_action.rs:1985) and pass it in. Alternatively, take() the field around the navigate event dispatch and restore it afterwards.

  2. navigation.rs:176: reload and Navigation API traversal now commit document.referrer as the current page's own URL. record_pending_location_navigation_request is also used by location.reload() (location_navigation.rs:673, kind Reload) and by navigation.back()/traverseTo() (navigation_traversal_execution.rs:58). On the CDP path, the initiator now feeds RendererMainDocumentCommitSeed::resolve (navigation_outcome.rs:172-175), so document.referrer becomes referrer_value(current URL, …). Repro: /a links to /b, then /b runs location.reload(). With v1.1.23 over CDP, document.referrer on /b is "" both before and after the reload. On this branch it becomes http://host/b after the reload. Chromium keeps the entry's original referrer (http://host/a). The new value is a self-referrer and is wrong in a new way. Smallest fix: attach the Document initiator only to Navigate-kind non-traversal navigations, and leave Reload and traversal callers on None as they are on main. Reload and traversal referrers belong to the remaining #2790 work. Add a CDP-path assertion. The new test only exercises moli fetch, while the navigation.rs change mainly affects the CDP path.

CI: Clippy, Format, harness and Windows checks pass. Nextest, the release builds and the CDP smoke test are still pending. The body correctly says Part of #2790 rather than claiming to close it.

@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 8119a6d

No blocking findings

Both round-1 issues are fixed in the code:

  • The link-policy leak is gone. Nothing is held host-wide any more. hyperlink_referrer_policy(handle) is read only from the source element of the navigation being recorded: targets.rs:95-98 for the _top/current hyperlink, and location_navigation.rs:684-690 when the Location path receives a source element. A navigate handler's location.href= arrives with source_element = None, so it gets the Document's policy. The wire case navigate-handler covers this.
  • Reload no longer records an initiator (location_navigation.rs:684, !matches!(kind, Reload)). Traversals (navigation_traversal_execution.rs:58) and window.open javascript: queuing (popups/renderer_owned.rs:31) are untouched, so they behave as on main. The renderer test location_navigations_record_a_document_initiator_but_reloads_do_not fails on main for the first assertion and protects the reload half.
  • set_pending_location_navigation_document_initiator always follows a record_pending_location_navigation* call, and that call replaces the pending entry unconditionally (context_host/navigation.rs:162-196). So it cannot overwrite an initiator from another realm on an older pending navigation.

Coverage of page-started paths: meta refresh and window.open(_self/_top) go through the same Location function, so they now carry the Document initiator as well. Same-process child-frame sources and iframe src keep main's behaviour, as the PR states. These gaps are not regressions; they belong to the remaining #2790 scope.

Cost: the default path does no new work. Pages that do not navigate are untouched. A page-started navigation adds one attribute lookup and one initiator, and reload now does less than the round-1 head. The numbers were measured on an earlier head, but they remain plausible for this diff.

Optional:

  1. The picture is out of date. Its Fix panel still says "<a> rel=noreferrer / referrerpolicy held during activation" (default_action.rs) and "record_pending_location_navigation_request attaches the page Document". The current design reads the policy per link at targets.rs/the Location path and attaches the initiator only at page-started sites, with no reload initiator. Please regenerate that panel and the test line, which should also name the renderer test.
  2. CI was still pending when I reviewed (Nextest, Clippy, CDP smoke, Build release). Please confirm they are green before merge.

@github-actions

github-actions Bot commented Nov 13, 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.003027%
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 ✅ 118/118 groups passed; 1,784 scenarios
WebMainBench ✅ 545/545 completed; 0 unexpected failures
Release regression — ✅ HEAD/base failures 0/0; raw binary +0.003027%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 154.51 MiB 154.51 MiB +4.79 KiB +0.003027%
Stripped binary 106.92 MiB 106.93 MiB +4.00 KiB +0.003653%
gzip binary 53.41 MiB 53.41 MiB +737 B +0.001316%
Rootfs 161.42 MiB 161.42 MiB 0 B 0.00%
gzip rootfs 62.51 MiB 62.51 MiB +3.25 KiB +0.005074%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 26.86 ms 26.86 ms +0.00 ms 4.84 MiB 4.72 MiB −129.00 KiB
CDP first page 49.24 ms 47.61 ms −1.62 ms 4.39 MiB 3.90 MiB −501.00 KiB
CDP warm page 11.27 ms 11.21 ms −0.06 ms 53.09 MiB 52.68 MiB −414.00 KiB
CLI about:blank 13.68 ms 12.91 ms −0.77 ms 2.13 MiB 3.17 MiB +1.04 MiB
CLI local JS 25.63 ms 24.45 ms −1.18 ms 4.13 MiB 4.64 MiB +528.00 KiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 23.49 ms 24.06 ms +0.57 ms 741.00 KiB 714.00 KiB −27.00 KiB 0 0/0
5 27.49 ms 28.63 ms +1.14 ms 12.78 MiB 13.03 MiB +260.00 KiB 0 0/0
10 27.35 ms 27.95 ms +0.60 ms 11.95 MiB 13.73 MiB +1.77 MiB 0 0/0
25 26.31 ms 27.20 ms +0.89 ms 23.37 MiB 12.96 MiB −10.42 MiB 0 0/0
100 28.25 ms 27.41 ms −0.85 ms 24.19 MiB 13.32 MiB −10.87 MiB 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 7m 9.04s
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 30.82 ms
Chromium 8 8 47/47 306.79 ms 95.92 ms
Operation p50 Chromium Moli Delta Delta %
navigate 46.12 ms 5.88 ms −40.24 ms −87.26%
observe 0.78 ms 1.25 ms +0.47 ms +60.43%
fill 3.79 ms 3.44 ms −0.34 ms −9.06%
click 6.45 ms 4.36 ms −2.09 ms −32.41%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 69.74 MiB 66.88 MiB 0.82% 10.03% 1 ✅
Chromium 1332.86 MiB 452.88 MiB 1.77% 49.92% 13 ✅
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 32.85 ms 37.32 ms 447.00 KiB
Long-lived CDP session 13 0 20.36 ms 21.63 ms —
CDP smoke — ✅ 118/118 groups passed; 1,784 scenarios

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

Slowest group Scenarios Duration Status
fetch-resource-dispatch 72 25.20 s ✅
fetch-resource-dispatch 72 24.95 s ✅
scrollbar-visibility 22 22.47 s ✅
scrollbar-visibility 22 22.46 s ✅
dom-input 62 21.92 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.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Spider Bench A/B

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

Public HEAD: 184 / 240 rows; 38 / 48 sites produced rows; 10 unexpected empty sites.

✅ Deterministic fixture contract is clean.

Common ancestor 58da945c9136 → HEAD 98b68cebd0b5; benchmark order: base-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 184 / 240 184 / 240 0 (0.00%)
Contract fill 76.67% 76.67% 0.00 pp (0.00%)
Sites with rows 38 / 48 38 / 48 0 (0.00%)
Sites meeting row contract 36 / 48 36 / 48 0 (0.00%)
Unexpected empty sites 10 10 0 (0.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 36; HTTP error + rows: 2; empty: 8; HTTP error + empty: 1; snapshot error + empty: 1 extracted: 37; HTTP error + rows: 1; empty: 8; HTTP error + empty: 1; snapshot error + empty: 1 —
Observed duration 61.02 s 60.34 s -0.69 s (-1.13%)
Estimated CPU 41.69 s 43.78 s +2.09 s (+5.02%)
Peak PSS 267.09 MiB 245.19 MiB -21.90 MiB (-8.20%)
Peak RSS 270.79 MiB 248.96 MiB -21.82 MiB (-8.06%)
Peak threads 31 31 0 (0.00%)
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 32 / 40 32 / 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.539, 3.541, 5.043, 7.047, 8.55, 10.053, 12.055, 13.558, 14.059, 15.56, 17.062, 18.565, 20.566, 22.067, 23.568, 25.57, 27.072, 29.074, 30.577, 32.078, 33.079, 34.081, 35.583, 37.586, 39.089, 40.591, 42.595, 44.098, 46.1, 47.602, 49.104, 51.107, 52.609, 54.11, 56.112, 57.614, 59.616, 60.117]
    y-axis "CPU percent" 0 --> 200
    line [133.82, 89.93, 129.92, 19.96, 113.82, 117.89, 109.94, 7.98, 0, 4, 13.97, 19.94, 10, 95.98, 37.98, 2, 3.99, 31.93, 61.84, 135.82, 107.89, 107.78, 103.86, 95.8, 103.85, 83.95, 53.88, 103.82, 2, 37.94, 25.97, 5.99, 21.97, 12, 93.89, 151.75, 128.05, 173.8]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.038, 1.539, 3.541, 5.043, 7.047, 8.55, 10.053, 12.055, 13.558, 14.059, 15.56, 17.062, 18.565, 20.566, 22.067, 23.568, 25.57, 27.072, 29.074, 30.577, 32.078, 33.079, 34.081, 35.583, 37.586, 39.089, 40.591, 42.595, 44.098, 46.1, 47.602, 49.104, 51.107, 52.609, 54.11, 56.112, 57.614, 59.616, 60.117, 61.024]
    y-axis "Memory MiB" 0 --> 500
    line [13.8, 100.78, 113.06, 152.13, 138.74, 123.68, 152.25, 136.95, 119.3, 119.16, 116.57, 119.63, 120.89, 122.19, 146.27, 123.16, 123.83, 123.83, 130.38, 157.72, 152.86, 270.79, 195.49, 137.2, 193.34, 137.42, 143.19, 158.25, 244.41, 222.56, 234, 231.05, 228.91, 229.18, 152.19, 148.22, 164.07, 158.99, 159.37, 0]
    line [10.5, 97.96, 109.37, 148.47, 135.41, 119.98, 148.47, 133.24, 115.69, 115.45, 112.86, 115.92, 117.18, 118.69, 142.56, 119.67, 120.11, 120.1, 126.65, 153.88, 149.18, 267.09, 191.78, 133.46, 189.56, 133.83, 139.45, 154.6, 240.68, 218.83, 230.07, 227.32, 225.17, 225.56, 148.46, 144.57, 160.34, 157.38, 155.65, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.542, 3.044, 3.545, 4.546, 5.046, 6.548, 8.552, 10.055, 12.058, 13.56, 15.063, 17.064, 18.566, 20.069, 22.071, 23.574, 25.076, 27.078, 27.579, 28.58, 30.582, 32.084, 33.586, 35.59, 37.09, 38.592, 40.594, 42.095, 43.596, 45.599, 47.101, 48.604, 50.608, 52.109, 54.11, 55.613, 57.115, 59.119]
    y-axis "CPU percent" 0 --> 200
    line [125.64, 109.95, 107.87, 139.86, 129.92, 115.95, 99.86, 49.87, 135.72, 21.99, 2, 2, 5.99, 101.89, 29.92, 1.99, 3.99, 4, 0, 121.91, 111.92, 101.9, 103.92, 57.89, 76, 87.85, 32.01, 65.95, 105.9, 2, 23.96, 29.95, 9.99, 13.99, 9.99, 107.79, 169.71, 133.74]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.04, 1.542, 3.044, 3.545, 4.546, 5.046, 6.548, 8.552, 10.055, 12.058, 13.56, 15.063, 17.064, 18.566, 20.069, 22.071, 23.574, 25.076, 27.078, 27.579, 28.58, 30.582, 32.084, 33.586, 35.59, 37.09, 38.592, 40.594, 42.095, 43.596, 45.599, 47.101, 48.604, 50.608, 52.109, 54.11, 55.613, 57.115, 59.119, 60.337]
    y-axis "Memory MiB" 0 --> 500
    line [13.79, 98.46, 128.58, 125.37, 132.86, 155.89, 135.07, 128.28, 140.11, 142.72, 140.06, 121.86, 122.95, 123.42, 145.4, 133, 126.02, 126.02, 125.82, 125.84, 144.17, 147.47, 244.12, 199.08, 145.79, 182.19, 137.65, 130.78, 164.09, 248.96, 226.31, 236.99, 234.24, 232.03, 232.36, 150.66, 145.46, 165.2, 174.46, 0]
    line [10.23, 94.75, 124.91, 121.67, 129.16, 152.18, 131.32, 124.53, 136.44, 138.93, 136.36, 118.08, 119.16, 119.63, 141.61, 129.21, 122.23, 122.23, 122.03, 122.05, 140.46, 143.65, 239.83, 195.36, 142, 178.39, 133.88, 127.02, 160.35, 245.19, 222.54, 233.22, 230.48, 228.26, 228.64, 146.84, 141.73, 161.4, 170.73, 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.86 s 19.86 s +0.00 s (+0.01%)
Estimated CPU 0.42 s 0.43 s +0.01 s (+2.36%)
Peak PSS 69.81 MiB 69.44 MiB -0.37 MiB (-0.53%)
Peak RSS 73.34 MiB 73.13 MiB -0.20 MiB (-0.28%)
Peak threads 21 21 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 13, 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 58da945c91 → HEAD 98b68cebd0; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 195 / 200 195 / 200
Failures / recovered 5 / 5 5 / 5
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 757.8 s 618.7 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 235.9 MiB 257.3 MiB +21.4 MiB
Periodic peak PSS 232.4 MiB 253.8 MiB +21.3 MiB
RSS · first 10 avg 170.6 MiB 155.6 MiB -15.0 MiB
RSS · last 10 avg 159.3 MiB 191.5 MiB +32.2 MiB
RSS · last − first window -11.3 MiB +35.9 MiB +47.2 MiB
RSS · warm slope / 100 nav -24.8 MiB +7.4 MiB +32.1 MiB
PSS · first 10 avg 167.5 MiB 152.2 MiB -15.3 MiB
PSS · last 10 avg 156.7 MiB 187.7 MiB +31.0 MiB
PSS · last − first window -10.8 MiB +35.5 MiB +46.3 MiB
PSS · warm slope / 100 nav -24.2 MiB +7.3 MiB +31.5 MiB
Peak file descriptors 66 67 1
Peak threads 33 33 0

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 177.5 MiB 156.5 MiB 220.2 MiB 173.9 MiB 153.0 MiB 58
51–100 184.4 MiB 223.1 MiB 223.1 MiB 180.8 MiB 219.6 MiB 57
101–150 189.1 MiB 163.1 MiB 224.3 MiB 185.4 MiB 159.4 MiB 58
151–200 191.3 MiB 134.4 MiB 228.6 MiB 187.7 MiB 130.8 MiB 60

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.

@lanyue-llk
lanyue-llk force-pushed the fix/navigation-referrer-policy branch from 8119a6d to 98b68ce Compare November 13, 2026 13:22
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.

1 participant