0010: The shell is shown by our own Servo kiosk
- Status: Accepted (owner, 2026-11-14)
- Date: 2026-11-14
- Supersedes: ADR 0007's browser (the rest of 0007 is superseded by 0009/0013)
Context
ADR 0007 shows the shell page with Firefox in kiosk mode: about 316 MB private memory for one page. Measured on the host (2026-11-14): WPE WebKit and Chromium were not lighter for this page; servoshell 0.8.0 used 65 MB but always draws its own toolbar, has no kiosk flag, and grew to over 200 MB on any X11 key or click. Servo 0.8.0 is published as a crate with a minimal embedding example (winit_minimal.rs).
Decision
The shell runs in couchdogs-kiosk, our own embedder (stack/shell/kiosk/, about 300 lines of Rust, MPL-2.0 like the Servo code it is built from): one borderless fullscreen window, no browser UI, only the gamepad forwarded (keyboard and mouse ignored), a reload when the backend is not up yet, and exit 2 when the page's content process crashes so the launch script starts it again. Compose builds it into couchdogs-shell:local on the pinned Firefox image, so it links against the libraries it runs with. Owner, 2026-11-14: the Firefox fallback (SHELL_ENGINE=firefox) left the stack with the shell as a Wolf app.
Consequences
- Spike under headless Gamescope on the host: kiosk 43 MB private (47 MB after 43 presses), no toolbar, pad presses reach the page's Gamepad API.
- The first image build compiles Servo: about 18 min with 3 jobs, up to 7 GB RAM, 5 GB disk; later builds of
main.rstake seconds. - Servo is younger than Firefox: pages must stay within what it renders well, and a Servo update is a deliberate version bump (
servo = "=0.8.0"). - Not yet seen on the TV; pad hotplug after start not tested.