From baa3b7f8969760c0a26f9d8cca7a8a7ac69bc37c Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 12 Nov 2026 23:41:37 -0600 Subject: [PATCH] servo-cleanup: Servo removal inventory, drop the WPT MSE runner docs/engine/servo-removal.md lists every Servo-dependent piece (deps, vendor crates, src/ hooks with the WebKit replacement each needs, docs, tests/tools) for the 08 WebKit plans. tools/wpt-mse.sh and tests/wpt-mse/ only tested Nacre's Servo MSE and nothing else uses them. src/, Cargo.toml and vendor/ are untouched. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 3 +- docs/DESIGN.md | 2 +- docs/PROGRESS.md | 5 + docs/engine/servo-removal.md | 259 +++++++++++++++++++++++++++++ tests/wpt-mse/driver.html | 51 ------ tests/wpt-mse/server.py | 42 ----- tests/wpt-mse/testharnessreport.js | 13 -- tools/wpt-mse.sh | 68 -------- 8 files changed, 266 insertions(+), 177 deletions(-) create mode 100644 docs/engine/servo-removal.md delete mode 100644 tests/wpt-mse/driver.html delete mode 100755 tests/wpt-mse/server.py delete mode 100644 tests/wpt-mse/testharnessreport.js delete mode 100755 tools/wpt-mse.sh diff --git a/CLAUDE.md b/CLAUDE.md index af5bb15..b44ce03 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -35,7 +35,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl ## 2. Facts -- **Engine switch in progress (D-032)**: the Servo facts below describe today's code until the `08 WebKit engine` plans replace it. Engine test and WebKit tuning data: `docs/engine/engine-comparison.md`, `docs/engine/tune/`. +- **Engine switch in progress (D-032)**: the Servo facts below describe today's code until the `08 WebKit engine` plans replace it. Engine test and WebKit tuning data: `docs/engine/engine-comparison.md`, `docs/engine/tune/`. Everything Servo-only and what WebKit must replace: `docs/engine/servo-removal.md`. - Cargo package `nacre` 0.4.0, edition 2024, Rust ≥ 1.88. Servo is `=0.7.0` from crates.io, trimmed (no WebXR, WebGPU, multiprocess). Gamepad and Web Bluetooth stay in. - Status: ~19k lines written, **never compiled**. Review passes were done by reading only. Expect a round of compile errors at the first build; fix them in place, don't restructure. @@ -76,7 +76,6 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl | `python3 tests/smoke/net/server.py &` + `tools/smoke.sh tests/smoke/net-{privacy,adblock,downloads}.txt` | network pass, offline: secure DNS through a local DoH stub (`*.nacre.test` → 127.0.0.1), HTTPS-only + certificate warning, tracking params, ad blocker with a local list, downloads + download manager stubs; the server's `/log` has requests, DNS names, Range headers, manager calls. `cache-restart.txt` with `SMOKE_HOME=/home`: disk cache. `net-real.txt` needs internet. `@HOME@` in scripts = the throwaway home | now (S007) | | `SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse.txt` + `tests/smoke/mse-leak-check.sh ` | MSE: chunk-appended fMP4, WebM and split A/V play; `mse-spec.html` spec cases (attach/detach, duration, buffered/seekable, remove, removeSourceBuffer, changeType, abort, reopen, sequence, leak); the leak check reads nacre.log (offline). `NACRE_DOM_MEDIA_SOURCE_ENABLED=0 tools/smoke.sh tests/smoke/mse-off.txt`: the switch. `SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse-player.txt`: player integration (attach without blocking, seeks, rate, ended, decode error, garbage append, script-thread gaps < 1 s; `?only=` in the page URL for one case). `tools/gst-mse.sh test`: patched gst_mse + C tests. DESIGN.md "Media and Media Source Extensions" | S022, S027, S028 | | `tools/gst-mse.sh [test]` | builds Nacre's patched gst_mse library and `mse` plugin (vendor/gst-mse) into `target/gst-mse/` (needed before running a build that uses MSE); `test` also runs the C tests in `tests/gst-mse/` | now (S026, branch s022-mse-proto) | -| `tools/wpt-mse.sh [outdir] [file ...]` | WPT media-source subset (60 files) in a hidden run; first run sparse-clones WPT at a pinned commit into `target/wpt` (needs internet once); prints subtest pass counts, results in `/wpt/results.json`; ~45 min | S027 | | `tools/smoke.sh tests/smoke/privacy-mode.txt` (+ `SMOKE_ARGS=--incognito … privacy-incognito.txt`) | privacy mode: `pages/fingerprint.html` read off/on, `fp-off.json`/`fp-on.json` + shots (offline); `privacy-net.txt` (needs `tests/smoke/net/server.py`) frame cookies, per-site pause, Accept-Language; `SMOKE_TIMEOUT=700 … coveryourtracks.txt` EFF's test off/on (internet, direct). Selftest `save ` writes a JS string result to `.json`; `SMOKE_ARGS` passes browser arguments | now (S024) | | `python tools/icons.py` | rebuilds the icon font subset and `src/ui/icons.rs` from `tools/icons.txt` (needs fontTools and Arch's ttf-material-symbols-variable) | now (S015) | | `tools/engine-test/run.sh servo\|chromium\|webkit` + `analyze.py` | engine comparison: one browser visible on DP-1, throwaway profile, sites from `sites.txt`, per-second RAM (PSS), CPU, GPU of the whole process tree into `docs/engine/runs//samples.csv`; `webkit_shell.py` is the WebKitGTK 6.0 shell (needs `webkitgtk-6.0`); report `docs/engine/engine-comparison.md`. Never run two at once or alongside cargo | now | diff --git a/docs/DESIGN.md b/docs/DESIGN.md index bc4521d..b5c766b 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -197,7 +197,7 @@ Plain `