Skip to content

fix(trusted-types): gate service worker registration URL - #254

Open
ldm0 wants to merge 1 commit into
mainfrom
wpt/trusted-types-service-worker-register
Open

fix(trusted-types): gate service worker registration URL#254
ldm0 wants to merge 1 commit into
mainfrom
wpt/trusted-types-service-worker-register

Conversation

@ldm0

@ldm0 ldm0 commented Aug 28, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions

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 ba64bba43d → HEAD 78b3413dc4; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 200 / 200 200 / 200
Failures / recovered 0 / 0 0 / 0
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 249.1 s 262.4 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 313.1 MiB 317.2 MiB +4.0 MiB
Periodic peak PSS 309.9 MiB 313.5 MiB +3.6 MiB
RSS · first 10 avg 210.2 MiB 211.3 MiB +1.1 MiB
RSS · last 10 avg 239.5 MiB 237.8 MiB -1.7 MiB
RSS · last − first window +29.3 MiB +26.4 MiB -2.9 MiB
RSS · warm slope / 100 nav +3.9 MiB +4.7 MiB +0.8 MiB
PSS · first 10 avg 207.2 MiB 207.7 MiB +0.5 MiB
PSS · last 10 avg 236.0 MiB 234.6 MiB -1.3 MiB
PSS · last − first window +28.8 MiB +27.0 MiB -1.8 MiB
PSS · warm slope / 100 nav +3.7 MiB +4.8 MiB +1.1 MiB
Peak file descriptors 59 58 -1
Peak threads 29 29 0

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 225.7 MiB 205.2 MiB 296.1 MiB 222.1 MiB 201.6 MiB 50
51–100 232.6 MiB 217.9 MiB 297.2 MiB 229.0 MiB 214.4 MiB 48
101–150 235.2 MiB 208.9 MiB 305.3 MiB 231.7 MiB 205.3 MiB 47
151–200 237.8 MiB 220.8 MiB 299.4 MiB 234.3 MiB 217.2 MiB 48

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

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 ba64bba43dd1 → HEAD 78b3413dc4a0; 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: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2
Observed duration 40.78 s 40.38 s -0.39 s (-0.96%)
Estimated CPU 33.97 s 33.73 s -0.24 s (-0.69%)
Peak PSS 266.36 MiB 286.39 MiB +20.03 MiB (+7.52%)
Peak RSS 269.78 MiB 290.13 MiB +20.35 MiB (+7.54%)
Peak threads 27 27 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 37 / 40 37 / 40 0
life 30 / 40 30 / 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.035, 2.037, 2.537, 3.539, 4.541, 5.542, 7.044, 8.046, 9.046, 10.548, 11.548, 12.55, 13.55, 15.052, 16.052, 17.053, 18.055, 19.557, 20.559, 21.56, 23.062, 24.063, 25.064, 26.066, 27.567, 28.568, 29.569, 31.07, 31.571, 32.072, 33.073, 34.074, 35.576, 36.577, 37.078, 37.579, 38.579, 40.081]
    y-axis "CPU percent" 0 --> 200
    line [41.99, 87.95, 133.89, 77.8, 157.89, 0, 117.89, 99.86, 119.8, 124.07, 127.89, 97.84, 2, 74.01, 53.96, 12, 57.87, 37.94, 109.85, 127.78, 103.83, 124.03, 113.7, 105.84, 22.01, 75.92, 55.95, 51.88, 131.76, 129.67, 118, 9.99, 103.82, 121.78, 159.64, 63.94, 57.97, 121.91]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.035, 2.037, 2.537, 3.539, 4.541, 5.542, 7.044, 8.046, 9.046, 10.548, 11.548, 12.55, 13.55, 15.052, 16.052, 17.053, 18.055, 19.557, 20.559, 21.56, 23.062, 24.063, 25.064, 26.066, 27.567, 28.568, 29.569, 31.07, 31.571, 32.072, 33.073, 34.074, 35.576, 36.577, 37.078, 37.579, 38.579, 40.081, 40.775]
    y-axis "Memory MiB" 0 --> 500
    line [21.93, 118.88, 141.27, 166.35, 175.73, 247.24, 216.53, 220.94, 217.82, 233.27, 233.36, 247.5, 206.36, 189.46, 193.46, 204.29, 197.43, 188.82, 200.04, 214.84, 227.37, 262.15, 212.09, 204.3, 229.34, 203.65, 209.4, 205.39, 224, 269.78, 261.51, 246.59, 226.46, 243.84, 208.84, 216.68, 210.77, 210.96, 237.2, 0]
    line [19, 115.65, 138.04, 163.12, 172.53, 244.02, 213.27, 217.65, 214.58, 229.98, 230.07, 244.22, 203.07, 186.18, 190.17, 201.01, 194.14, 185.53, 195.31, 211.36, 223.68, 259.02, 208.61, 201.39, 225.87, 200.25, 206.03, 202.02, 219.66, 266.36, 258.02, 243.09, 222.96, 240.36, 205.3, 213.18, 207.28, 207.24, 233.72, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.035, 2.037, 2.537, 3.537, 4.539, 5.54, 6.041, 7.042, 8.044, 9.046, 10.048, 10.549, 11.55, 12.552, 13.554, 14.555, 16.057, 17.058, 18.061, 19.062, 20.564, 21.565, 22.567, 23.568, 25.07, 26.072, 27.073, 28.075, 29.577, 30.578, 31.579, 32.581, 34.082, 35.082, 36.084, 37.086, 38.588, 39.589]
    y-axis "CPU percent" 0 --> 200
    line [53.95, 0, 75.91, 121.98, 145.66, 131.86, 159.92, 125.85, 135.74, 55.92, 55.87, 133.72, 79.93, 23.95, 77.82, 87.93, 39.98, 89.85, 27.96, 91.86, 123.79, 127.79, 125.69, 63.89, 55.95, 109.71, 6, 29.96, 67.94, 27.97, 91.94, 73.89, 9.99, 43.98, 123.65, 77.8, 97.75, 109.85]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.034, 1.035, 2.037, 2.537, 3.537, 4.539, 5.54, 6.041, 7.042, 8.044, 9.046, 10.048, 10.549, 11.55, 12.552, 13.554, 14.555, 16.057, 17.058, 18.061, 19.062, 20.564, 21.565, 22.567, 23.568, 25.07, 26.072, 27.073, 28.075, 29.577, 30.578, 31.579, 32.581, 34.082, 35.082, 36.084, 37.086, 38.588, 39.589, 40.383]
    y-axis "Memory MiB" 0 --> 500
    line [22.31, 119.93, 133.57, 139.05, 182.57, 202.23, 262.36, 244.11, 235.5, 255.52, 246.16, 248.31, 290.13, 257.24, 174.39, 202.45, 203.69, 192.52, 221.45, 200.2, 215.42, 265.62, 261.18, 224.45, 212.75, 228.7, 221.56, 188.31, 186.66, 195.82, 206.29, 247.75, 210.89, 189.58, 203.29, 230.18, 191.98, 195.67, 230.87, 0]
    line [19.2, 116.45, 130.09, 135.57, 179.64, 198.73, 259.36, 240.56, 232.64, 252.31, 242.51, 244.75, 286.39, 253.69, 170.84, 198.9, 200.14, 188.96, 217.89, 196.65, 211.79, 262.06, 257.64, 221.99, 209.19, 225.89, 218.01, 184.76, 183.11, 192.26, 202.74, 248.4, 207.34, 186.02, 199.73, 226.67, 188.32, 192.12, 227.28, 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.92 s 19.93 s +0.01 s (+0.06%)
Estimated CPU 0.43 s 0.42 s -0.01 s (-2.31%)
Peak PSS 86.45 MiB 84.55 MiB -1.90 MiB (-2.20%)
Peak RSS 89.82 MiB 87.94 MiB -1.88 MiB (-2.09%)
Peak threads 18 18 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.

@ldm0
ldm0 force-pushed the wpt/trusted-types-service-worker-register branch from 78b3413 to af037ec Compare August 28, 2026 11:56
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