Repository navigation
fix(trusted-types): avoid duplicate reports for transformed trusted scripts - #1457
Conversation
Sequential Navigation Soak A/BOne browser process, one target, and one CDP session navigate CSDN → SegmentFault → Huaban → example.com repeatedly. This run issued 200 Common ancestor Session resilience
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
HEAD memory by 50-navigation quarter
Raw reports and per-navigation boundary samples: workflow run and full Public-site timing and memory are observational. Use the A/B deltas and trend shape as evidence, not as a deterministic performance threshold. |
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 Public 48-site run · informational
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 timelinesThese 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. Basexychart-beta
title "Base CPU"
x-axis "Elapsed seconds" [1.535, 2.537, 4.04, 5.541, 6.543, 7.543, 8.044, 9.546, 10.546, 12.048, 13.551, 14.552, 16.053, 17.555, 18.556, 20.059, 21.561, 22.563, 24.064, 25.567, 26.568, 27.569, 28.07, 29.572, 30.573, 32.076, 33.578, 34.579, 36.081, 37.583, 38.584, 40.086, 41.087, 41.588, 42.59, 44.092, 45.593, 46.595]
y-axis "CPU percent" 0 --> 500
line [32, 121.79, 113.79, 152.09, 211.67, 228.06, 111.84, 174, 177.76, 95.87, 165.7, 139.98, 69.94, 27.97, 123.96, 79.79, 75.83, 65.83, 94, 123.85, 133.86, 107.85, 111.8, 133.61, 119.84, 121.85, 149.8, 105.87, 119.66, 99.89, 141.88, 87.86, 3.99, 7.98, 69.82, 106.02, 77.9, 103.79]
xychart-beta
title "Base memory: RSS then PSS"
x-axis "Elapsed seconds" [0.035, 1.535, 2.537, 4.04, 5.541, 6.543, 7.543, 8.044, 9.546, 10.546, 12.048, 13.551, 14.552, 16.053, 17.555, 18.556, 20.059, 21.561, 22.563, 24.064, 25.567, 26.568, 27.569, 28.07, 29.572, 30.573, 32.076, 33.578, 34.579, 36.081, 37.583, 38.584, 40.086, 41.087, 41.588, 42.59, 44.092, 45.593, 46.595, 47.887]
y-axis "Memory MiB" 0 --> 500
line [12.49, 88.52, 115.13, 147.4, 150.66, 175.02, 207.33, 215.3, 231.36, 183.35, 165.03, 204.3, 178.7, 174.94, 194.95, 168.67, 156.23, 165.48, 153.42, 178, 165.87, 181.63, 292.48, 219.93, 212.54, 159.61, 198.74, 173.57, 154.09, 160.94, 158.33, 218.48, 192.71, 178.5, 165.95, 179.02, 190.8, 161.61, 183.08, 0]
line [9.07, 84.76, 111.36, 143.62, 147.05, 171.87, 203.62, 211.52, 227.67, 178.02, 161.21, 200.04, 174.86, 171.1, 191.11, 164.83, 152.39, 161.64, 148.99, 174.16, 162.06, 177.79, 288.76, 216.26, 208.76, 155.81, 195.03, 170.05, 150.75, 157.31, 154.6, 214.9, 188.98, 174.77, 162.21, 175.35, 187.2, 158.43, 179.36, 0]
HEADxychart-beta
title "HEAD CPU"
x-axis "Elapsed seconds" [1.037, 1.538, 2.539, 4.042, 5.044, 6.545, 8.047, 9.049, 10.552, 12.054, 13.055, 14.556, 15.556, 16.558, 17.059, 18.56, 19.562, 21.063, 22.065, 23.567, 25.068, 26.069, 27.57, 28.572, 30.075, 31.577, 32.577, 34.08, 35.582, 36.583, 38.085, 39.087, 40.589, 42.09, 43.092, 44.595, 45.597, 46.599]
y-axis "CPU percent" 0 --> 200
line [2, 5.98, 115.82, 131.77, 135.77, 153.92, 135.78, 155.64, 129.64, 91.9, 133.81, 8, 2, 0, 3.99, 0, 59.94, 155.91, 19.98, 129.86, 102.04, 127.89, 102, 109.77, 127.78, 131.83, 166.09, 117.69, 77.93, 55.92, 147.81, 141.91, 73.99, 93.86, 119.78, 29.94, 137.78, 179.88]
xychart-beta
title "HEAD memory: RSS then PSS"
x-axis "Elapsed seconds" [0.036, 1.037, 1.538, 2.539, 4.042, 5.044, 6.545, 8.047, 9.049, 10.552, 12.054, 13.055, 14.556, 15.556, 16.558, 17.059, 18.56, 19.562, 21.063, 22.065, 23.567, 25.068, 26.069, 27.57, 28.572, 30.075, 31.577, 32.577, 34.08, 35.582, 36.583, 38.085, 39.087, 40.589, 42.09, 43.092, 44.595, 45.597, 46.599, 47.007]
y-axis "Memory MiB" 0 --> 500
line [12.45, 61.95, 63.77, 114.28, 133.32, 145.11, 163.99, 186.5, 176.68, 185.69, 176.4, 170.29, 162.91, 151.15, 148.54, 149.3, 150.36, 158.99, 171.89, 147.5, 177.05, 148.78, 162.45, 294.08, 203.41, 243.15, 166.61, 186.76, 171.08, 151.8, 156.26, 215.6, 243.26, 196.48, 180.2, 204.09, 160.29, 177.57, 200.79, 0]
line [9.14, 58.18, 60, 110.58, 129.65, 141.87, 160.22, 182.72, 172.61, 181.11, 172.75, 166.83, 159.23, 147.63, 144.58, 145.78, 146.57, 155.47, 169.17, 143.7, 174.75, 145.01, 158.51, 290.93, 199.82, 239.51, 162.94, 182.54, 167.61, 148.26, 152.62, 211.86, 239.34, 192.84, 176.61, 200.73, 156.69, 173.96, 197.16, 0]
Deterministic fixture · required contractThe fixture exercises 15 routes: 8 are expected to emit rows and 7 intentionally exercise empty, loading, or timeout behavior.
Full HTML, JSON, CSV, logs, and page snapshots: workflow run and full 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. |
CI Regression ReportSource CI run · source state at render:
Release regression — ✅ HEAD/base failures 0/0; raw binary 0.00%Package and image size
Startup latency and PSS
Concurrency matrix
Frontend differential — ❌ 1,019/1,020 cases matched; 1 issues
First failing cases
Agent episodes · Moli vs Chromium — ✅ 8/8 Moli episodes passed; 0 failures
Runtime and CDP session contracts — ✅ 26 contract cases; 0 failures
CDP smoke — ✅ 52/52 groups passed; 621 scenariosWorkers: 4 · cumulative group time: 189.74 s · failed groups: 0
WebMainBench · 545 pages — ✅ 545/545 completed; 0 unexpected failures
Frozen HTML · Linux · Diagnostics: All artifact fields are parsed by the trusted default-branch renderer; missing or invalid inputs remain visible as unavailable. |
A default policy can produce TrustedScript whose source is unsuitable for eval or Function compilation. Rejecting that transformed source currently also emits a sink-mismatch report, even though the policy supplied the required trusted type.
Keep the compilation EvalError while suppressing the extra Trusted Types violation. Exercise eval and Function with transforming default policies and verify queued violation delivery remains empty.
Validation on this branch, based directly on main
cac20d15b838:cargo fmt --allcargo clippy --workspace --all-targets --all-features -- -D warningscargo nextest run --no-fail-fast --test-threads 32 --retries 0: 20064 passed, 17 skipped.Extracted from the existing WPT work branch; no unmerged PR prerequisites.