S053: verified build, tests, smokes; MSE smokes load pages over loopback http
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
parent
fefc1be75d
commit
2c7687693f
6 changed files with 19 additions and 11 deletions
|
|
@ -71,7 +71,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl
|
|||
| `tools/smoke.sh tests/smoke/settings.txt` (+ `SMOKE_SIZE=1280x1100`) | every settings section and sub-page dark and light, search results (`nacre://settings/?search=…`), narrow width; `settings-write.txt` (hidden, `SMOKE_SIZE=1280x1100`, fresh outdir) taps controls with selftest `tap x y`, then check `home/.config/nacre-servo/Default/settings.json` (expected values in its header) | now (S019) |
|
||||
| `SMOKE_SIZE=1280x1600 tools/smoke.sh tests/smoke/sliders.txt` | controls hold still (R1-21): Interface size drag (value label while held, applied on release), Contrast live, Style chip pick; `SMOKE_VISIBLE=1 tools/smoke.sh tests/smoke/sliders-visible.txt` the same plus scrolling for the user's window (~772 px). Selftest `press`/`drag`/`release`, `scroll x y dy`; read the PNGs | now (R1-21) |
|
||||
| `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=<cache.txt outdir>/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`, `…/mse-player.txt` | plain MSE tests on WebKit: 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); player integration (attach, seeks, rate, ended, decode error, garbage append; `?only=<case>` in the page URL for one case). Offline. `youtube-mse.txt` is an internet probe | S022, S027, S028, S053 |
|
||||
| `SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse.txt`, `…/mse-player.txt` | plain MSE tests on WebKit: 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); player integration (attach, seeks, rate, ended, decode error, garbage append; `?only=<case>` in the page URL for one case). Offline, start `python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages &` first (MSE needs an http origin). `youtube-mse.txt` is an internet probe | S022, S027, S028, S053 |
|
||||
| `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 <name> <js>` writes a JS string result to `<name>.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 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/<engine>/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 |
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ WebKit engine, user-visible texts say WebKit. MSE test pages are kept as plain M
|
|||
- [x] CLAUDE.md §2 facts (WebKit, GTK host, no Servo), §4 pitfalls (no clang/SpiderMonkey/hours-long builds; nested niri), §5 tools; PLAN.md goal/out-of-scope (printing, private mode, 3rd-party cookies now possible; Widevine later).
|
||||
- [x] User-visible texts (settings About/engine row, misc pages, task manager) say WebKitGTK + version.
|
||||
- [x] Remove `spikes/webkit-egui/` (its harness lives in tools/ since S046); keep `docs/engine/webkit-spike.md`.
|
||||
- [ ] `nice cargo build --release -j 2`, `cargo test`, smokes launch/basics/input/chrome/gallery/mse green hidden.
|
||||
- [ ] PROGRESS entry, INDEX line, tracker, commit `S053: …`, push.
|
||||
- [x] `nice cargo build --release -j 2`, `cargo test`, smokes launch/basics/input/chrome/gallery/mse green hidden.
|
||||
- [x] PROGRESS entry, INDEX line, tracker, commit `S053: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `grep -rni "servo" src Cargo.toml build.rs tools tests/smoke | grep -v -i "nacre-servo"` empty except the migration code in `paths.rs`; build/test/smokes green.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Done (details in git, PROGRESS, DECISIONS): 01 First build S001–S004 · 02 Ver
|
|||
Dropped with Servo (D-032): S011, S029, S030, S032, S033, S037, S038.
|
||||
|
||||
## 08 WebKit engine (in this order)
|
||||
- [ ] [S053 — Remove Servo: vendor crates, gst-mse, Servo-only tests/tools, docs and texts](08%20WebKit%20engine/S053-servo-removal.md) · Sonnet high
|
||||
- [x] [S053 — Remove Servo: vendor crates, gst-mse, Servo-only tests/tools, docs and texts](08%20WebKit%20engine/S053-servo-removal.md) · Sonnet high
|
||||
- [ ] [S057 — Small UI bugs: Customize panel scroll, site colour from the favicon, colour picker glyphs, beforeunload on quit](08%20WebKit%20engine/S057-small-ui-bugs.md) · Sonnet high
|
||||
- [ ] [S058 — Ads vanish before your eyes: Pie-style cookie shield removal animation (port of the original)](08%20WebKit%20engine/S058-ad-removal-animation.md) · Opus medium
|
||||
- [ ] [S051 — Profile folder, sealed cookies, site data, incognito, media source](08%20WebKit%20engine/S051-profile-cookies-media.md) · Opus medium
|
||||
|
|
|
|||
|
|
@ -424,6 +424,13 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
|
|||
- Closed by the user (2026-11-14): the page-input loss is accepted as a one-off (old PiP code); the watchdog and `pick` help if it returns. YouTube right click: no answer, treated as Chrome's behaviour (second right click goes to the browser).
|
||||
- Later: `log::` calls print nothing (no logger set up); Ctrl+click/Ctrl+wheel need a key-holding test helper; keyboard Menu key / Shift+F10 gives WebKit's own GTK menu (no pointer position, Nacre declines it); S039: `play_button` shape morph and other `DEFAULT`-spring controls overshoot (check against ≤200 ms ease-out).
|
||||
|
||||
## S053 — Servo removal (2026-11-14)
|
||||
- Done: vendor/servo-*, vendor/gst-mse, vendor/epaint patch, src/resources.rs, assets/servo, tools/gst-mse.sh, tests/gst-mse, mse-off/leak-check/painters smokes, S027 handoff, mse-spike.md and spikes/webkit-egui removed; DESIGN/REVIEW/FEATURES/CLAUDE/PLAN and user-visible texts describe WebKitGTK. `docs/engine/gst-mse-patches.md` kept as record.
|
||||
- Verified: `cargo build --release` and `cargo test` (79 + webext 1) green; hidden smokes exit 0: launch, basics, input, chrome, gallery (egui text fine); end-criteria grep for "servo" in src, Cargo.toml, build.rs, tools, tests/smoke empty.
|
||||
- mse.txt / mse-player.txt now load pages from a loopback server (`python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages &`): WebKit rejects MSE blob URLs of file:// pages (video error 4). Result: mse-basic mp4 and split play; the rest differs from the old Servo gst_mse (not green, not caused by the deletions).
|
||||
- Not done: mse WebM VP9/Opus clip unsupported; spec attach (no sourceopen), ranges (seekable vs duration Infinity), removeSourceBuffer (quota), changeType unsupported; player seekBuffered/seekUnbuffered/ended (no event), garbage ("MediaSource closed"). Hidden nested session only. keys.txt ran alongside, exit 0.
|
||||
- Later: rewrite mse-spec/mse-player expectations to WebKit's actual MSE behaviour or drop the cases.
|
||||
|
||||
## Later
|
||||
- A link followed inside a frame still goes through the tab's navigation policy (WebKit's GTK API has no frame info; S050).
|
||||
- file:// media outside the XDG user folders doesn't play (WebKit sandbox, D-043).
|
||||
|
|
|
|||
|
|
@ -2,9 +2,10 @@
|
|||
# outside the buffered range, playback rate, ended, decode error and garbage appends (see its header); each case
|
||||
# must report true. The js probe right after the page starts the first player must answer within 1 s (the script
|
||||
# thread never blocks on attach), and the page's own 20 ms timer must never stall for 1 s. Offline.
|
||||
# Run: SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse-player.txt
|
||||
# Pages come from a loopback server: WebKit gives MSE blob URLs of file:// pages an opaque origin and rejects them.
|
||||
# Run: python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages & then SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse-player.txt
|
||||
wait 3
|
||||
open @PAGES@/mse-player.html
|
||||
open http://127.0.0.1:8765/mse-player.html
|
||||
waitload 30
|
||||
waitfor 1 document.readyState === "complete"
|
||||
waitfor 180 window.player && window.player.done
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Media Source Extensions: mse-basic.html appends a clip to one SourceBuffer in 32 KiB
|
||||
# chunks, ends the stream and plays; ?split uses separate video and audio SourceBuffers. Passes when
|
||||
# MediaSource exists, every chunk is appended, and currentTime advances. Then mse-spec.html runs the spec
|
||||
# cases one by one (see its header); each must report true. Offline. Run with tools/smoke.sh.
|
||||
# cases one by one (see its header); each must report true. Offline, pages from a loopback server (WebKit rejects MSE blob URLs on file:// pages): python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages & then tools/smoke.sh.
|
||||
wait 3
|
||||
open @PAGES@/mse-basic.html
|
||||
open http://127.0.0.1:8765/mse-basic.html
|
||||
waitload 30
|
||||
assert typeof MediaSource === 'function'
|
||||
waitfor 20 window.mse && window.mse.stage === 'ended'
|
||||
|
|
@ -11,7 +11,7 @@ waitfor 20 window.mse.time > 1.5
|
|||
shot mse-mp4
|
||||
assert window.mse.errors.length === 0
|
||||
js JSON.stringify(window.mse)
|
||||
open @PAGES@/mse-basic.html?webm
|
||||
open http://127.0.0.1:8765/mse-basic.html?webm
|
||||
waitload 30
|
||||
waitfor 20 window.mse && window.mse.stage === 'ended'
|
||||
waitfor 20 window.mse.time > 1.5
|
||||
|
|
@ -19,7 +19,7 @@ shot mse-webm
|
|||
assert window.mse.errors.length === 0
|
||||
js JSON.stringify(window.mse)
|
||||
# Separate video and audio SourceBuffers (video appended 2 s before audio), as YouTube does
|
||||
open @PAGES@/mse-basic.html?split
|
||||
open http://127.0.0.1:8765/mse-basic.html?split
|
||||
waitload 30
|
||||
assert window.mse.supported === true
|
||||
waitfor 30 window.mse && window.mse.stage === 'ended'
|
||||
|
|
@ -29,7 +29,7 @@ shot mse-split
|
|||
assert window.mse.errors.length === 0
|
||||
js JSON.stringify(window.mse)
|
||||
# Spec cases
|
||||
open @PAGES@/mse-spec.html
|
||||
open http://127.0.0.1:8765/mse-spec.html
|
||||
waitload 30
|
||||
waitfor 120 window.spec && window.spec.done
|
||||
shot mse-spec
|
||||
|
|
|
|||
Loading…
Reference in a new issue