S022: D-015 MSE go (option A), plans S026-S030, PROGRESS, INDEX

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-12 10:59:36 -06:00
commit c50d76f020
2 changed files with 266 additions and 2 deletions

View file

@ -17,3 +17,4 @@
- D-012 — 2026-11-12 — servo-net is vendored (`vendor/servo-net`, 0.7.0 + `http2_max_header_list_size(256 KiB)` in `connector.rs` `create_http_client`) via `[patch.crates-io]`. — hyper's 16 KiB HTTP/2 default rejects YouTube's ~19 KiB response headers; Servo can't configure it from the embedder. — any plan that upgrades Servo: drop the patch when servo-net sets the limit, re-run `tests/smoke/heavy-web.txt`
- D-013 — 2026-11-12 — New plans: S022 MSE spike (05 Engine) runs right after S006; privacy plans S023 (request headers + third-party cookies in the vendored servo-net), S024 (privacy mode, R1-16), S025 (encrypted cookies, R1-19) run after S009, before the S010 review. — The user wants real YouTube playback in the page (no yt-dlp workaround) and asked whether missing Servo features can be added from reference engines; the spike sizes MSE before committing weeks to it. — S006–S025 run order
- D-014 — 2026-11-12 — Two more Nacre patches in the vendored servo-net (D-012), marked "Nacre patch": `fetch/methods.rs` lets the certificate warning's `chrome:allowcert` request through (it ended as UnsupportedScheme, so "Open anyway" never worked); `http_cache.rs` `flush_to_disk` + `resource_thread.rs` Exit write the memory HTTP cache to the disk cache at quit (Servo only wrote evicted entries, so a session's cache was lost). — Both are Servo 0.7 bugs the embedder can't work around. — any plan that upgrades Servo: re-check both, re-run `tests/smoke/net-privacy.txt` and `cache.txt` + `cache-restart.txt`
- D-015 — 2026-11-12 — MSE: go, option A (S022). Keep GStreamer's gst_mse library for parsing and coded frame processing; Nacre fixes its three 1.28.9 defects (early update-end, idle ticks, split A/V init segments) in its own copy of the library and plugin, plus a thin MSE DOM in the vendored `servo-script`/`servo-script-bindings`/`servo-media*` crates (`[patch.crates-io]`, like D-012). Option B (an own MSE core in Rust feeding appsrc) is the fallback only if bug 3 can't be fixed in msesrc. Plans S026–S030 run after S009 and before S023–S025. The prototype branch `s022-mse-proto` carries S026–S027 and merges into main in S028. — Decided by the orchestrator overnight on the user's standing OK; the user wants engine fixes, not workarounds (no yt-dlp). The spike showed gst_mse does the hard parts, and the blockers are concrete (docs/engine/mse-spike.md). — S026–S030, any Servo upgrade (drop the patches when Servo ships MSE)

View file

@ -257,6 +257,14 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
- Not done: Tor/proxy routing and kill switch (never in tests), real filter list downloads, YouTube ad blocking,
ask-where dialog, retry, `<a download>`, IDM, "Always for this site".
## S022 — MediaSource (MSE) spike (2026-11-12)
- Done: upstream check (nothing merged; servo#40423 draft, #47269 closed); docs/engine/mse-spike.md with findings, sized plan, risks and recommendation. Prototype on branch `s022-mse-proto` (worktree ~/Projects/Nacre-s022, own target): MediaSource/SourceBuffer/SourceBufferList over gst_mse, vendored script, script-bindings, servo-media, player and gstreamer. `tests/smoke/mse.txt` passes on the branch (chunk-appended fMP4 and WebM play, frames shown).
- YouTube: own player, blob MediaSource. AV1 run: time 0→12 s with no picture (no AV1 decoder). isTypeSupported now needs a decoder. VP9+AAC stalls at readyState 0 (gst_mse bug 3: split A/V init segments).
- Rebuild cost: script edit 566 s, backend-only edit 106 s, first vendored build 593 s.
- Decision D-015: go, option A; follow-up plans S026–S030 written.
- Not done: Windows runtime not tried in the VM (sizes from the release index only); seeking and quality switches untested.
- Later: Servo refuses fetch/XHR of file:// from file:// pages (smoke clips are base64 scripts); the selftest `js` probe can hang when the script thread blocks (seen once on YouTube).
## Later
- Turnstile widget paints as a black half-disc (Servo painting of its iframe/shadow DOM, S006 site doctor).
- Google sign-in past the email step: press Next with a real account, by the user (S006).