S028: DESIGN media/MSE section, Engine limits without MSE, FEATURES row, mse-player tools row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
84f723f817
commit
24eeaa5938
3 changed files with 20 additions and 3 deletions
|
|
@ -72,7 +72,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` + `tests/smoke/mse-leak-check.sh <outdir>` | 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. Branch `s022-mse-proto` only (docs/engine/mse-spike.md) | S022, S027 |
|
||||
| `SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse.txt` + `tests/smoke/mse-leak-check.sh <outdir>` | 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=<case>` 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 `<outdir>/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 <name> <js>` writes a JS string result to `<name>.json`; `SMOKE_ARGS` passes browser arguments | now (S024) |
|
||||
|
|
|
|||
|
|
@ -139,8 +139,6 @@ picture-in-picture, extensions, password capture, printing.
|
|||
- Chrome extensions: not possible. Replaced by user scripts and user styles (Apps -> Scripts).
|
||||
- Hardware acceleration switch: Servo needs GL; "Off" selects software GL (LIBGL_ALWAYS_SOFTWARE) on next start.
|
||||
- Printing: "Save page as PDF/PNG" through a full-page screenshot.
|
||||
- Media Source Extensions: Servo 0.7 has no `MediaSource`, so YouTube's player says "Your browser can't play this
|
||||
video" (and PiP finds no video). Plain `<video>` files (WebM, MP4 through GStreamer) play.
|
||||
- Inline `<svg>` is painted from its own markup, so `currentColor` misses the CSS colour; `SVG_COLOR_JS`
|
||||
(`inject.rs`) copies each icon's computed colour into its `color` attribute (hover colours not followed).
|
||||
- Fingerprinting: Servo has no IndexedDB, plugins list, WebRTC or DynamicsCompressorNode, and its user agent is a
|
||||
|
|
@ -176,6 +174,22 @@ checked like any subresource. `document.cookie` and the Cookie Store API in a th
|
|||
webview id (servo-script isn't vendored); Nacre's `FRAME_COOKIE_JS` (`inject.rs`, S024) empties them in a frame
|
||||
whose top page is another site.
|
||||
|
||||
## Media and Media Source Extensions (S022-S028)
|
||||
|
||||
Plain `<video>`/`<audio>` play through servo-media's GStreamer backend (playbin3 via GstPlay). Servo 0.7 has no
|
||||
`MediaSource`; Nacre adds it in vendored crates (`[patch.crates-io]`, every change marked `Nacre patch`):
|
||||
|
||||
| Crate | What |
|
||||
|---|---|
|
||||
| `vendor/servo-script-bindings` | `MediaSource`, `SourceBuffer`, `SourceBufferList` WebIDL; `buffered` is `[Throws]` (`GetBuffered`, `cx` in Bindings.conf) |
|
||||
| `vendor/servo-script` `dom/media/` | the DOM objects to spec: attach/detach, events through tasks, buffered/seekable, abort, changeType, sequence mode, object URLs per global. Ready state under MSE comes from buffered ranges vs. current time (`buffered_ready_state`), metadata (`loadedmetadata`) once every SourceBuffer has an init segment; player-driven HAVE_ENOUGH bumps are skipped |
|
||||
| `vendor/servo-media-player` `mse.rs` | backend traits, `MseEvent`, pure helpers (ready state, track counts from codecs, type parsing) with unit tests |
|
||||
| `vendor/servo-media-gstreamer` | `mse.rs` backend over gst_mse; `ByteStreamCheck` walks MP4 boxes / WebM EBML to find init segments and reject garbage (gst_mse only reports an init segment once frames arrive). `player.rs` setup returns at once for a MediaSource (never blocks the script thread); msesrc `ready-state` -> `MseEvent::Metadata`. `registry_scanner.rs` codec table (`isTypeSupported` = `canPlayType`) |
|
||||
| `vendor/gst-mse` | patched gst-plugins-bad 1.28.9 MSE library + msesrc, built by `tools/gst-mse.sh` into `target/gst-mse`, loaded ahead of the system copy; patches in `docs/engine/gst-mse-patches.md`, diff in `nacre.patch` |
|
||||
|
||||
Checks: `mse.txt` (spec cases + leak check), `mse-player.txt` (attach, seeks, rate, ended, errors, script-thread
|
||||
gaps), `tools/gst-mse.sh test` (C tests), `tools/wpt-mse.sh` (WPT media-source). Background: `docs/engine/mse-spike.md`.
|
||||
|
||||
## Cookies at rest (S025)
|
||||
|
||||
`store::cookies` keeps Servo's public cookie jar in `<data>/cookies.bin`: the jar's JSON (Servo's own
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@ Media button (when playing/always/never), player flyout (art, seek, controls, mu
|
|||
buttons, paused state): verified S009 (integ-discord.txt + integ-discord-check.sh, fake IPC server): handshake with the Settings app ID, SET_ACTIVITY with title, artist, progress bar, button, paused state and a browsing activity; the media state comes from the page's Media Session. Fixed R4-09: the large image falls back to the origin's /favicon.ico when the page's favicon is data:, http: or long. Not checked: real Discord, per-site IDs, display type, the media flyout, visualizer, mute, PiP (S005). Picture in picture (own always-on-top window; reloads the page in a web view
|
||||
of its own and seeks the video, page state lost, D-008): verified on Xvfb (S005). Protected content (Widevine): engine
|
||||
limit, shown as unavailable.
|
||||
Media Source Extensions (`MediaSource`, `SourceBuffer`; YouTube-style players): S026-S028, vendored crates and patched
|
||||
gst_mse (DESIGN.md "Media and Media Source Extensions"); verified S028 (mse.txt, mse-player.txt: attach without
|
||||
blocking, seek inside/outside buffered, rate, ended, decode error, garbage append; WPT media-source, see PROGRESS).
|
||||
|
||||
## Passwords and autofill
|
||||
Encrypted vault (device key or master password, auto-lock, re-ask before showing), save prompt, autofill, strong
|
||||
|
|
|
|||
Loading…
Reference in a new issue