diff --git a/Plans/05 Engine/S027-mse-dom-spec.md b/Plans/05 Engine/S027-mse-dom-spec.md index ec02d81..071d139 100644 --- a/Plans/05 Engine/S027-mse-dom-spec.md +++ b/Plans/05 Engine/S027-mse-dom-spec.md @@ -33,7 +33,7 @@ MediaSource, object URL lifetime, no reference leak, a pref switch. D-015. - [x] `dom_media_source_enabled` pref (on by default in Nacre); `MediaSource` absent when off - [x] Smoke: mse.txt grows cases (remove + re-append, duration change, changeType same type, abort mid-append, endOfStream then append reopens) with asserts; a WPT subset page or script run that reports pass counts -- [ ] PROGRESS entry, INDEX line, commit `S027: …` on the branch, push the branch +- [x] PROGRESS entry, INDEX line, commit `S027: …` on the branch, push the branch ## End criteria - `tools/smoke.sh tests/smoke/mse.txt` passes with every new case asserted. diff --git a/Plans/INDEX.md b/Plans/INDEX.md index d80b075..905f257 100644 --- a/Plans/INDEX.md +++ b/Plans/INDEX.md @@ -36,7 +36,7 @@ Tracker: https://claude.ai/artifact/9AD7fPfwJ4ASFzVTJGKU4h ## 05 Engine - [x] [S022 — MediaSource (MSE) spike](05%20Engine/S022-mse-spike.md) · Opus high · 🧑 - [x] [S026 — Fix gst_mse for split audio/video MSE](05%20Engine/S026-gst-mse-fixes.md) · Opus high -- [ ] [S027 — MSE DOM to spec](05%20Engine/S027-mse-dom-spec.md) · Opus high +- [x] [S027 — MSE DOM to spec](05%20Engine/S027-mse-dom-spec.md) · Opus high - [ ] [S028 — MSE player integration and merge to main](05%20Engine/S028-mse-player.md) · Opus high - [ ] [S029 — YouTube and Reddit video pass](05%20Engine/S029-youtube-reddit-pass.md) · Opus high · 🧑 - [ ] [S030 — Ship GStreamer with MSE (AppImage and Windows)](05%20Engine/S030-media-packaging.md) · Opus medium diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md index 96a9073..6f1e6c8 100644 --- a/docs/PROGRESS.md +++ b/docs/PROGRESS.md @@ -312,6 +312,13 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor - Not done: clear-data page not driven by a smoke (same `clear_cookies` call as clear-on-close, picked up by the 5 s save); no real-keyring run on the user's desktop (KWallet/gnome-keyring prompt) — for the user; Windows run untested. - Later: `engine/auth_cache.json` (HTTP auth passwords) and `hsts_list.json` are still Servo's plain files; Nacre has no logger, so `log::` lines (incl. the cookie store's) go nowhere. +## S027 — MSE DOM to spec (2026-11-12, branch s022-mse-proto) +- Done: MediaSource/SourceBuffer/SourceBufferList own the spec state; every event is a media element task. Attach/detach, duration change, `HTMLMediaElement.buffered`/`seekable` from the MediaSource (live seekable range), `activeSourceBuffers`, `removeSourceBuffer`, `abort`, `changeType` (same container only), sequence mode, `endOfStream(error)` → element error steps, `isTypeSupported` registry check. Object URLs in a per-global map (revoke, unload); weak event sink (no `Trusted` cycle). Pref `NACRE_DOM_MEDIA_SOURCE_ENABLED` (D-017). gst_mse patches 5–9 (real `remove()`, abort resets parser, reset crash, track feeds by id, appendWindowStart). +- Tests: `tests/smoke/mse.txt` (11 spec cases) green, `mse-leak-check.sh` (MediaSource freed), `mse-off.txt` green, `tools/gst-mse.sh test` 5/5. +- WPT (`tools/wpt-mse.sh`, 60 files, no workers/ManagedMediaSource): **239/407** subtests. Below the ≥ 293 target. Run 1's 246 was inflated: the driver read the previous test's result before the next page committed (fixed: results carry their path). +- Not to spec / not done: player integration (S028): `loadedmetadata`/HAVE_METADATA after the init segment only (duration-boundaryconditions 0/13, play/seek tests 0/1 each); changeType across containers (gst can't; changetype-play* ~1/19); errors before the init segment; `buffered` after `removeSourceBuffer` should throw; Opus/fLaC in MP4 (no decoder). Worker MSE and ManagedMediaSource out of scope. +- Seen once: a full WPT run hung the script thread (driver timer stopped at file 19); not reproduced in the rerun. Watch in S028. + ## 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).