Roves

Servo Shell (previous generation)

The previous Servo-based desktop Shell (releases up to v0.7.15), whose tooling still builds the mobile packages.

Edit on GitHub

Previous generation

This page describes the Servo-based Shell, the desktop runtime of Roves releases up to v0.7.15. Since v0.9.0, desktop games run in the Roves player (Chromium through CEF), and Packmaster and roves-action @v1 package that player instead. The Shell's mach bundle tooling is still what builds the Android and iOS packages. The mach build and mach bundle desktop flags, content packing and installers below apply only to the Shell.

What the Shell is

The Shell was the heart of Roves before v0.9.0 — the compiled Servo-based engine binary. Packmaster and roves-action@v0 build or download this Shell on your behalf and hand you the result already put together.

As the name suggests, the Shell is a container: an empty, pre-built native application that knows how to load and run a dist — your game's already-built web output, whatever your own bundler (Vite, webpack, or anything else that produces a browser-runnable index.html) produces — as a real, double-click desktop app. No browser chrome, no toolbar, no address bar — one window that opens your game and nothing else. It's the same role a Tauri or Electron shell plays, just for a different underlying engine; see Why Roves? for that comparison.

The Shell is already built for you

You don't need to compile anything to get a working Shell. Every engine release from v0.1.0 to v0.7.15 published a ready-to-run Shell — with no game content in it yet — on the Releases page. From v0.9.0 on, assets with the same roves_shell_<platform>.zip names contain the Roves player instead, with a different layout. Each platform is published twice: a plain build and a _steam-suffixed one compiled with the Steam bridge built in.

PlatformDownloadContains
Windowsroves_shell_windows.zip / _steam.zipplay.exe + the DLLs (incl. GStreamer's) it needs
macOSroves_shell_macos.zip / _steam.zipplay.app, whose Contents/MacOS/play is the engine binary
Linuxroves_shell_linux.zip / _steam.zipplay (expects GStreamer already installed via your distro)

These are optimized (--release) builds with the real GStreamer media stack (bundled automatically on Windows/macOS). Pick the version your game targets, download the zip for your platform, and extract it anywhere — that's the whole install step.

Inserting your dist into the Shell

This is the part that actually matters: turning that empty container plus your built game into something playable. Every path below — Packmaster included — ends up doing the exact same thing under the hood, so pick whichever fits how you work.

Nothing here requires Rust, Python, or mach — just a downloaded Shell and your already-built game.

  1. Build your game with your own bundler, however you already do it. This produces a folder — commonly named dist/ — containing an index.html plus whatever assets it references.

  2. Download and extract the matching Shell zip from the table above.

  3. Copy your build output next to the Shell binary (play.exe / play.app / play), keeping it named dist so it lines up with the Shell's own default expectations.

  4. Tell the Shell where to find it. Two ways, depending on whether you want a double-click-runnable copy or you're just testing:

    • A launch.json next to the binary (recommended — this is exactly what mach bundle/Packmaster generate for you):

      launch.json
      {
        "url": "dist/index.html"
      }

      With this file in place, double-clicking the Shell binary opens your game directly — no arguments needed. This is what actually makes the container double-click-runnable.

    • Pass the path as an argument, for a quick check without creating any file:

      from a terminal, or a shortcut's target
      ./play dist/index.html

      Any argument on the command line skips launch.json entirely, so use this for testing, not for what you hand to a player.

No launch.json and no argument? The Shell isn't broken

Without either, the container has nothing to run — it just opens the stock Servo homepage. That's expected: it means no dist has been pointed at it yet, not that something failed.

This covers loose files only

Hand-writing launch.json this way ships your dist as plain, individually browsable files (equivalent to mach bundle --content-compress=none). The compressed tar+zstd packing described in Content packing is produced by roves-content-packer, invoked either through mach bundle or by Packmaster linking that same crate as a library — there's no manual equivalent for that path.

launch.json also accepts window_size and extra args — see the flags table further down for what each corresponds to; a hand-written file only needs url to work.

Building the Shell yourself

This is the least important section for most people. You only need this if you're working on Roves itself, need a flag Packmaster doesn't expose, or want to understand what's actually happening underneath the paths above.

Roves' Shell is not a from-scratch engine — it's a vendored, customized fork of Servo, built with Servo's own mach tooling. Every customization on top of stock Servo (no browser chrome, the single-executable bundle, the boot splash, the roves: protocol bridge, optional Steam) is tracked, file by file, in CUSTOMIZATIONS.md.

git clone https://github.com/DRincs-Productions/roves
cd roves

Build and bundle

from the repo root
./mach bootstrap
./mach build --release

Add --features steam if you need the Steam bridge compiled in.

--features mimalloc (since v0.5.2, experimental) swaps the global memory allocator for mimalloc. By default Windows uses the system allocator and macOS/Linux use jemalloc. It exists for allocator A/B measurements and has not been shown to be faster yet, so don't ship it in a game unless your own measurements say it helps. The perf-ab pre-release on the Roves repository publishes a Windows build of each for comparison.

./mach bundle --content-dir path/to/dist --output release

mach bundle is what turns that build plus your dist into the container described above, producing exactly the same launch.json-driven layout — no separate launcher process, no roves-content-packer binary shipped alongside it (packed-content extraction happens in-process, inside the engine binary itself, which already links that crate as a library):

PlatformPortable output
Windowsplay.exe next to a handful of DLLs it needs directly, with GStreamer's plugin DLLs (and their own private codec dependencies) tucked into a lib/ subfolder
macOSplay.app, whose Contents/MacOS/play is the engine binary
Linuxplay

Flags

FlagDefaultDescription
--content-dir <dir>—Web content to copy/pack into the bundle.
--html-file <path>dist/index.htmlEntry HTML file, relative to the bundle root.
--output, -o <dir><build dir>/bundleWhere to write the bundle.
--window-size <WxH>1280x720Initial window size in logical pixels.
--diagnostic-scriptoffShip a diagnose.bat/diagnose.sh next to the binary that launches the game from a console and prints its exit code plus roves.log inline. See Diagnostics.
(trailing args)—Anything else is forwarded verbatim to the running game as CLI args (written into launch.json).

Performance diagnostics

Shell releases since v0.5.1 expose an opt-in counter stream for comparing idle and animated workloads without changing the game. Set ROVES_PERF_LOG_INTERVAL_MS to a positive reporting interval before launching the Shell:

ROVES_PERF_LOG_INTERVAL_MS=10000 ./play dist/index.html

The normal roves.log receives aggregate [roves-perf] lines with real SDL events versus wait timeouts, redraws queued or coalesced, dispatched redraws, WebView paints, egui runs/tessellations/paints, framebuffer blits, composed or direct presents, and final window presents. The counters are disabled by default and create no sampling timer or background thread.

Each interval also emits one [roves-perf-time] line with the total and worst-case wall-clock time, in microseconds, of four shell phases: webview_paint (Servo/WebRender painting the page), egui_run (the egui update pass), shell_paint (the off-screen blit plus any egui painting) and present (the final window swap). Divide a total by the matching count from the [roves-perf] line for a per-frame average. GL work is asynchronous, so GPU cost usually shows up in whichever phase waits on it, typically present under VSync; the times are CPU-side and not a GPU profiler.

For meaningful Roves/Chrome comparisons, keep the page, release build, window size, warm-up and sample duration identical; do not treat results from a debug build as representative.

Since Shell v0.7.2, two more aids work on a game you have already bundled:

  • ROVES_EXTRA_ARGS appends engine options to the launch of a bundled game, which otherwise ignores the command line. For example, ROVES_EXTRA_ARGS="-p 5" prints the engine's own time profile every 5 seconds, split into script, layout, painting and so on.
  • ROVES_V8_FLAGS passes extra options to the JavaScript engine, V8 (since Shell v0.7.8). It is meant for diagnosing garbage-collection pauses together with the [roves-gc] lines.
  • [roves-gc] lines appear in roves.log whenever a JavaScript garbage collection pauses the game for 8 ms or more, with the JavaScript heap size at that moment. Frequent long pauses point at a game that allocates a lot per frame.

Shader cache

Since Shell v0.7.8, the graphics shaders compiled for your game are saved in the game's settings folder and reused on the next launch, like Chrome's GPU shader cache. The first launch compiles them when they are first needed; later launches avoid those stalls. The cache is rebuilt automatically after a graphics driver update.

Minimized or covered window

Since Shell v0.7.8, the Shell behaves like Chrome when the game window is minimized, hidden or completely covered by other windows. document.visibilityState becomes hidden and a visibilitychange event fires, and timers and animations slow down to save CPU and GPU. Everything resumes when the window is visible again. Listen for visibilitychange to pause your music, as you would in a browser.

Downloaded assets are cached on disk

Since Shell v0.7.7, images, audio and other files your game downloads from the internet are saved in a disk cache in the game's own data folder. They are reused on later launches for as long as the server's caching headers (Cache-Control, Expires) allow, so set a sensible max-age on your asset host. Files are never cached when the request carries cookies or an Authorization header. Each game also has its own settings folder, next to its roves.log.

Graphics card

Since Shell v0.7.5, on Windows laptops with both an integrated and a dedicated GPU (NVIDIA Optimus, AMD switchable graphics), games run on the dedicated GPU by default. The driver control panel can still override this per game. WebXR (VR/AR) is not available in the Shell.

Direct presentation

The development tree caches actual WebGL drawing-buffer dimensions until the next canvas resize, avoiding repeated synchronous queries from JavaScript to the WebGL thread. This is not yet a released performance claim. Benchmark the same production page and dimensions in Roves and Chrome; GPU usage must be measured per process. Web Animations playback remains incomplete and disabled, and AudioWorklet is not implemented, so loading motion or Tone.js alone does not establish full compatibility. Current measurements are maintained in the engine repository's docs/ROVES_PERFORMANCE.md.

Roves v0.7.12 Web Audio frequency analysis uses RealFFT/RustFFT instead of a quadratic direct transform. It preserves the Blackman window, Web Audio normalization and smoothing and reuses FFT buffers. This benefits AnalyserNode frequency reads; it does not add AudioWorklet support or imply that every Tone.js operation becomes faster. Its analyser transport uses a bounded Crossbeam ArrayQueue to retain the latest 32768 samples and import them when JavaScript reads analysis data. It removes the per-block DOM tasks and their rooted DOM callback. Whole-game CPU savings remain to be measured; this change ships in v0.7.12. Audio graph processing and downmix still run. Commit 605d486b079 passed the ordered patch validation and all desktop, Windows, macOS, Linux, Android, and iOS CI jobs (desktop workflow). Chrome DevTools MCP verified the transport fixture with eight analyzers both unread and read at about 60 Hz. The post-change Roves runtime subsequently passed the authorized headless transport test. Across three runs per variant with eight unread analyzers, median process CPU fell from 42.6% to 24.4% of one logical core, with median peak private memory increasing from 200.1 to 201.3 MiB. All twelve checks (zero/eight nodes, before/after) passed. These are retained debug artifacts, at 44.1 kHz with Microsoft's software renderer, not an optimized rebuild A/B or a comparison with Chrome. Whole-game CPU, GPU, long-session memory and per-frame reads remain to be measured; see the engine performance notes for all individual runs and limits. A separate optimized mimalloc repetition also passes all twelve checks. With eight unread analyzers, median process CPU is 15.07% before and 10.68% after; median peak private memory is 194.78/195.63 MiB. One after trial has higher host load: excluding that entire trial pair changes the median reduction from 29.1% to about 22.5%. Windows Power saver was active when checked. These software-renderer component results do not establish whole-game or Chrome parity. Performance fixtures select their entry point before loading the normal diagnostic panels, using React.lazy and Vite module splitting. This avoids importing Tone.js and starting its module side effects during graphical comparisons. Rebaseline both browsers after this fixture correction; it is not an engine speedup. Visible CPU pilots still show substantial variation. Process CPU counters are collected from Windows separately from Chrome DevTools MCP page inspection; GPU counter runs are kept separate. The performance notes retain raw-run conditions and do not claim Chrome parity.

The v0.7.12 worker shutdown fix wakes idle dedicated workers through their existing Crossbeam channel after terminate(), and closes the scope when its event-loop channels disconnect. A pre-change optimized probe retained all four new worker thread IDs five seconds after termination. The final debug CI artifact (56957e15df8) releases all four in each of three cycles in the same parent; private memory after each cycle is 166.63/166.01/166.26 MiB, without progressive growth observed across those cycles. The reproducible queue probe also covers message bursts, canceled timers and later messages: a normal empty wake-up must leave a live worker running. It passes on the final artifact as well. support/perf/worker-lifecycle-bench.html retains parent Worker objects deliberately so runtime cleanup cannot depend on parent garbage collection. Automatic mode hides the diagnostic DOM and logs only to console to avoid rendering-thread noise. No scheduler dependency is added. The structured-clone bridge now moves the serialized byte vector into/out of the DOM transport using Rust ownership, removing two intermediate stream copies and three raw copy helpers. V8 still handles serialization and the wire format is unchanged. The separate payload copies for transferred ArrayBuffers remain. Local engine-layer tests pass (33 passed, two ignored); all ten cross-platform V8 checks and both optimized allocator builds pass on 8db6eab. Six alternating before/after optimized runs pass: median 4 MiB clone round-trip is 5.72/3.88 ms and transfer is 6.37/4.15 ms. These are API latencies, not game CPU savings. The optimized artifact predates the final wake-up guard, separately verified on 56957e1 debug. The visible pre-change 4 MiB transfer benchmark gives a median of 5.77 ms per round-trip across three Roves processes, versus about 0.10 ms across three Chrome DevTools MCP runs. These are baseline API timings, not whole-game CPU gains or post-change results. Worker rendering has a separate functional gap: the optimized Roves probe exposes OffscreenCanvas but returns null for WebGL 1/2 contexts and has no worker requestAnimationFrame. Chrome DevTools MCP passes both context types and red-pixel readback on the same page. Use workers for computations/data preparation with bounded concurrency; PixiJS/three.js rendering in workers requires further engine support. The existing DOM-thread OffscreenCanvas tests do not cover worker rendering or presentation into a transferred DOM canvas. Development after the v0.7.12 tag removes redundant standard-class hooks from non-Window globals: V8 already provides the standard classes. This avoids installing a named-property interceptor on worker globals, while retaining Window's lazy DOM interface hooks. The fixed-work compute probe found a large pre-change difference between repeated Math.imul lookup and a captured function (8551/74 ms); Chrome MCP's direct case took 69 ms. These are single diagnostic runs. All 74 generator tests,13 desktop and 10 V8 CI jobs pass on 1edef82. The verified downloaded debug artifact completes the same direct worker probe in 93.05 ms; FIFO/timer checks pass as well. The older 8551 ms artifact is optimized, so do not derive a matched-profile percentage or game CPU saving. This change is not part of v0.7.12.

The v0.7.13 Window optimization uses V8 native data properties for enabled interfaces, preserving lazy construction, aliases and owning realms. All 39 local tests pass (two ignored); desktop 13/13, V8 10/10 and all six release builds pass. The published Windows binary passes nine DOM checks, queue/timer checks and the visible Pixi/typewriter probe. Direct and captured intrinsic loops both take about 7.9 ms. Checked Rust conversion also fixes the unknown V8 source-column overflow, verified on the debug CI artifact. No new dependency or custom cache.

One updated visible Roves/Chrome155 pair uses 87.44/82.70 percent of one CPU core, 626/335 MiB private memory, and 10/7 frames above33 ms. Different host load and single runs do not establish parity or a stable whole-game gain. Half-rate rendering is not evidence of CPU savings. Native Web Animations playback remains incomplete.

The large integer worker probe takes about 8.4/4.2/2.1/1.1 seconds with 1/2/4/8 workers; total process CPU stays near11 core-seconds while sampled private memory rises174–250 MiB. Chrome arithmetic throughput is similar, but headless Roves versus visible Chrome does not establish UI or CPU parity. Prefer evaluating small reused pools and bounded batches in real games. ArrayBuffer payload copies and worker WebGL/rAF support remain open.

roves-action v0.1.9 and its v0 alias select engine v0.7.13. Packmaster v0.1.9 reads one shared shell-version.txt from both TypeScript and Rust. This corrects an old production backend pin (v0.4.18) which test/latest builds masked; the former frontend-only v0.7.12 pin did not update that backend. Consumer CI and published release assets are verified.

On October 17, Chrome DevTools MCP observed 1–120 native animations on the typewriter fixture over ten seconds, using opacity and transform (Chrome 155.0.8059.84, visible, 1024×740, DPR 1). Roves uses the JavaScript fallback while Web Animations playback is incomplete. This supports prioritizing the native animation path; it does not measure its potential CPU savings or explain every long frame. WebRender's dynamic property API is already used for caret colors; animated opacity and transform bindings remain to be integrated. Playback support and compositor integration both need verification before claiming that these animations avoid scene rebuilds.

Optimized Windows builds from commit 20f899dcfbb pass numerical CI checks and local WebGL resize/readback and audio spectrum checks. In matched headless API tests, spectrum reads at 2048/8192 samples dropped from about 27/432 ms to 0.03/0.09 ms. These are individual API measurements, not whole-game CPU, GPU or RAM results; the engine performance notes include the reproduction pages, sample counts and limitations. The experimental perf-ab builds are separate from the versioned shell consumed by Packmaster and roves-action.

Since Shell v0.7.4, when a game fills the window and no Shell dialog, status overlay or accessibility tool is active, the Shell copies the game's frame straight to the window instead of drawing it through its own interface layer. Anything else (a dialog, the boot splash, an error page) automatically uses the full path for that frame. Nothing needs to be configured: the earlier ROVES_DIRECT_PRESENT variable is no longer read. With the performance counters on, direct frames show up as direct_presents and the others as composited_presents.

Custom game icon

FlagDefaultDescription
--icon-png <path>auto-detectWindow/taskbar icon (PNG), applied after packaging — no compile needed, works for a prebuilt shell too. Not supported on macOS yet (its own Dock/app icon has no runtime override).
--icon-ico <path>auto-detectWindows-only .exe icon (multi-size .ico), patched into the bundled play.exe in place via rcedit.

"Auto-detect" means: with neither flag given, mach bundle looks for an icon.png/icon.ico sitting directly in --content-dir before falling back to Roves' own branding — many bundlers already emit one there for their own PWA manifest, so a game that already has one gets its own icon for free, no flag needed. Pass either flag explicitly to override this.

Content packing

How --content-dir gets packed into the bundle — see Content packing for the full design (why, the boot-set/lazy-extraction split, the archive layout). These flags tune or disable it:

FlagDefaultDescription
--content-compressautoauto: pack into a handful of tar+zstd archives. none: copy in as loose, individually browsable files.
--content-compression-level1zstd level for --content-compress=auto. Low by default — speed over ratio.
--content-max-pack-size500MSplit archives so none exceeds this size.
--content-exclude <glob>—Repeatable. Leave matching files as loose, uncompressed files (e.g. a save-data folder that shouldn't sit inside a read-only archive).
--content-boot-include <glob>—Repeatable. Extra files eagerly extracted at boot, beyond the html file, whatever it directly references and every JavaScript/CSS file (always extracted at boot since Shell v0.7.6).

Distributing installers

Each platform also has one installable alternative to the portable output above, wrapping the exact same staged files — nothing extra is left behind once the installer is built:

PlatformInstaller flagProduces
Windows--msiAn installable .msi
macOS--dmgplay.app wrapped in an installable .dmg
Linux--debAn installable .deb
FlagDefaultDescription
--package-name <name>rovesPackage name for --deb/--msi/--dmg.
--package-version <ver>0.0.0Package version for --deb/--msi/--dmg.

Extra args after --output are forwarded to the game, not to mach

mach bundle's own flags (--package-name, --package-version, --msi, ...) are for naming/shaping the installer. Anything else on the command line is written into the bundle's launch.json and handed to the running game at launch as real CLI args — the two are validated against each other so one can't accidentally leak into the other.

Realm ownership in the V8 prototype

The backend no longer keeps every JavaScript context alive for the whole runtime. A context and its native realm data are traced together; a weak registry records them without owning them. Objects, functions, queued jobs, the current realm and saved nested realm entries keep the contexts they need. Realm principals are released exactly once, on collection or shutdown. The initial runtime context remains alive for shared intrinsics. This is tested in the isolated runtime, including foreign Window wrappers; full integration is checked by CI. Servo still holds page globals and module maps, and a linked JSON module awaiting evaluation stays alive only while its module graph does. This does not establish page collection or any measured CPU/RAM improvement.

Restarting a JavaScript runtime

A pending promise-job drain belongs to its runtime. Closing that runtime before the queued drain runs no longer prevents a new runtime on the same thread from scheduling its own promise checkpoint. This is covered by normal and JITless backend tests; it does not establish complete worker shutdown or navigation correctness.

Delayed V8 work is also tied to its original runtime registration, rather than looking up a possibly reused isolate address when the timer expires. Removing or replacing that registration prevents later delivery of its queued timer work. Work already handed to the embedder still requires the normal foreground/shutdown ordering. No performance or memory improvement has been measured from this change.

Foreground tasks already handed to the event loop carry a weak reference to their original runtime owner and execute only in that runtime. The runtime also owns their native work until execution or shutdown: it destroys unexecuted work before disposing the isolate, leaving any late event-loop payload empty. This also covers rejected event-loop delivery. Completed slot metadata is pruned amortized. Work that was never accepted after closure, unregistered platform tasks retain the earlier conservative policy; this is not a proof that every task allocation is reclaimed. Embedders must still keep their dispatch callback data valid during in-flight callbacks.

Removing or replacing a V8 foreground handler releases captured embedder data after unlocking the registry. This prevents deadlocks from destructors that reenter registration; normal and JITless backend regressions cover both paths.

Unregistering a runtime also destroys its delayed V8 tasks still waiting in the timer (for example a pending Atomics.waitAsync timeout) while the isolate is alive, instead of leaking them when they fall due. Replacing a handler keeps the conservative policy. Tasks V8 posts while the runtime is shutting down are also destroyed before its isolate goes away, instead of being leaked. Unregistering waits for tasks another thread (including the timer) is already delivering to the runtime, so they too are destroyed on the runtime's thread before its isolate goes away. Tasks V8 posts after unregistration, when no runtime owns the isolate anymore, are still leaked rather than destroyed, because their isolate may already be gone.

Object.defineProperty with a partial descriptor on DOM objects that have named properties (such as an HTMLCollection) and on window changes only the fields it gives, as in other browsers: { writable: false } makes an existing property read-only while keeping its value, and a descriptor with only get or only set keeps the other accessor. Previously writable alone was ignored and the missing accessor was cleared. Page code that replaces Reflect.defineProperty or adds get/value to Object.prototype does not affect this. Normal and JITless engine tests cover it; a small browser smoke check covers a real HTMLCollection and window.

Reading the descriptor of a property of these DOM objects (Object.getOwnPropertyDescriptor, and operations built on it such as Object.keys or spreading) also ignores get, set, value and the other descriptor fields added to Object.prototype by page code: no such getter or setter runs and the read no longer throws "Invalid property descriptor". The returned descriptor is an ordinary object, as in other browsers. Descriptors that page code passes to Object.defineProperty, and results of its own Proxy traps, still follow the language rules and see inherited fields.

The "incumbent" window (the caller the browser reports to APIs such as postMessage's source) follows the innermost running code: a parent page calling a function defined in a same-origin iframe is attributed to the iframe, as in browsers. Event, timer and animation-frame callbacks hide the code that scheduled them, so the browser's own callback bookkeeping decides instead. This uses V8's incumbent tracking directly; normal and JITless runtime tests cover it, and the Linux browser smoke test confirms the postMessage case.

FinalizationRegistry cleanup callbacks run with their page as the entry window, so APIs that depend on it (for example drawImage with an image, or setting location) work inside them instead of stopping the page's scripts.

Creating a WeakRef or reading it with deref() keeps its object alive until the current task and its microtasks have finished, as the JavaScript and HTML specifications require. Roves used to release those objects only after a promise callback had run, so a page that created or read WeakRefs without using promises could keep their objects alive indefinitely. They are now released at the end of every microtask checkpoint, and the garbage collector can reclaim any that nothing else holds; objects still referenced elsewhere are unaffected.

Promise callbacks and queueMicrotask callbacks share one queue and run in the order they were queued, as in browsers. Previously Roves ran every pending promise callback, including ones queued by those callbacks, before the next queueMicrotask callback: with Promise.resolve().then(() => { log("p1"); Promise.resolve().then(() => log("p2")); }) followed by queueMicrotask(() => log("q")), Roves logged p1, p2, q where browsers log p1, q, p2. Code that mixes the two, such as libraries that schedule work with queueMicrotask, now sees the browser order. Dedicated workers use the same shared queue, and an automated browser check covers the worker order too. The old Servo Promise-enqueue callback and its internal WebIDL adapter are removed: V8 owns the Promise jobs, while HTML callbacks retain their usual WebIDL invocation and exception reporting. The remaining unused hooks inherited from Servo's old JavaScript engine are gone too, along with a small allocation every page or worker made for them and never freed; script behavior is unchanged.

Sending a SharedArrayBuffer or a WebAssembly.Module with postMessage or structuredClone throws a DataCloneError (Roves pages are not cross-origin isolated), instead of failing silently or with a generic error.

Window identity across navigations

When a window navigates (an iframe whose src or srcdoc changes, a page following a link), a reference other code already holds to it, such as iframe.contentWindow, window.opener or the result of window.open, keeps pointing at that window and reaches the new page, as in browsers. V8 keeps one global proxy per browsing context, and a page that gave it to its successor cannot take it back, so Roves reloads pages on back/forward navigation instead of resuming them from memory: pageshow reports persisted as false, and page state not saved in storage is reinitialized. The session_history_max_length preference defaults to 0 for this reason. Navigations to a page handled by another script thread (another origin) get a separate window, as before. A page's pagehide and unload handlers run before its successor takes over, so window inside them still refers to the page being left. The engine's smoke tests now also cover an iframe whose page changes origin and back: a same-origin page, then a sandboxed page with its own opaque origin, then a same-origin page again. The held contentWindow must stay the same object and stay the sender of the frame's messages; while the page is sandboxed, reading its document must fail with a SecurityError while postMessage, closed and the other cross-origin members keep working, and access must return with the last page. The first run of this check on Roves failed: while the page was sandboxed, the parent got a new contentWindow object and a different message sender. Roves now keeps one object per frame for each page that holds it, through every origin change and back, without keeping the replaced pages alive, and each new page in the frame gets its own cross-origin members (such as postMessage) instead of the previous page's; the engine's smoke tests confirmed the fix. The check now goes through two sandboxed pages in a row before returning, and repeats that round twice: the frame keeps the same contentWindow, each sandboxed page must really replace the previous one, a page's postMessage stays the same callable function while that page is shown, and messages sent through it reach the page currently shown (browsers may hand the next page the same function, so that is not checked). The browser result of this longer check is pending CI.

The scheduling smoke check no longer expects a setTimeout(..., 0) callback to run before the next requestAnimationFrame callback: browsers may run either one first (Chrome runs the frame first in a visible page). It now waits for both and still requires the promise and queueMicrotask callbacks to run first, in the order they were queued; a callback that never arrives fails the check on its timeout. The result of this check on Roves is pending CI.

Migration review checkpoint — 23 October 2026

WindowProxy reuse and cross-realm navigation coverage have landed, alongside native dynamic constructors and incumbent-context support. General build CI is green at8e4fb2e6cf4, but both Linux V8 smoke variants fail because the GC page calls a missing main entry point. The page's full collection sequence has been restored, together with the cleanup-callback check and the more detailed removed-frame report. A lightweight check now fails when the page loses its entry point; it does not replace the browser run, so the fix is pending CI. Removed-frame collection remains diagnostic and must not be presented as proof that complete pages are reclaimed.

Development follows a continuous implementation, verification, review and CI loop. Completed changes can be committed locally while the previous CI batch runs; publication waits for that batch to finish successfully, including fixes for any failures. After a completed task or push, agents continue the next authorized task without routine confirmation. Explicit stops, actual quotas, unresolved blockers or no useful remaining work end the loop; continuous polling and publication of incomplete changes remain excluded.

After a confirmed Claude session limit, the development workflow checks /usage in the CLI and schedules one retry at the reported reset plus two minutes, respecting its date and timezone. Missing or ambiguous reset times are not guessed. There is no intermediate polling. Explicit user schedules take precedence; a still-blocked attempt stops instead of creating another retry for the same block.

V8 migration: microtask ordering

Nested Promise callbacks no longer run before an earlier queueMicrotask callback: Roves now logs the browser order p1,q,p2 (see the microtask section above). If a script is stopped while microtasks are pending, the queueMicrotask callbacks still queued run at the same checkpoint, followed in order by the promise callbacks they queue. Removed-frame retention remains unresolved.

The CI runner's simulated browser derives its required check names from the validator for every page, including the worker FIFO check. The POSIX fixture regression is covered by the full WSL runner suite; real-browser checks remain mandatory and are not replaced by simulated output.

The focused prototype-pollution descriptor check also exposes a Chrome155 DOM divergence: collection indices/names and dataset observe inherited descriptor fields, while ordinary expandos do not. This comparison is a correctness diagnostic, not a performance result; Roves browser validation runs in CI.

The latest removed-frame snapshot still contains the frame. Identified native root paths include FontFaceSet promises, an injected document listener and Performance ownership consistent with a task parked for a closed pipeline. Task-queue cleanup is the next scoped fix; overall frame retention remains unresolved.

Task queues now discard ready, throttled and inactive tasks when their pipeline exits, and reject late tasks for that pipeline. This releases canceled native captures on the script thread while retaining other pipelines and worker tasks. FontFaceSet/callback roots remain separate follow-ups; release of the frame itself still needs CI confirmation.

FontFaceSet now retains its cached ready promise through a traced DOM edge, rather than a permanent native promise root. Repeated getters keep the same JS promise, and native callers still receive rooted wrappers. This removes the unconditional ownership cycle without clearing externally retained promises; callback roots and overall removed-frame collection still require verification.

Native DOM callbacks entered from Promise reactions now synchronize the embedder realm with the actual V8 execution context and restore the previous realm afterwards. This fixes an origin-check crash exposed by the font-ready GC test; origin checks remain enforced. The complete browser regression is verified in CI.

Native regression coverage also checks successful and throwing calls between two realms with distinct principals, including exact caller restoration and exception propagation. These are runtime contracts; complete browser smoke validation remains in CI.

A window reference returned by a native call made in another realm is converted back to the calling page. For example, window, self and parent read through a held WindowProxy of a cross-origin iframe return the page's own references again, so identity checks such as held.window === held keep working while cross-origin access stays restricted. Browser validation of this case is pending.

Listeners added with addEventListener are now kept alive by the element (or other event target) they are registered on, and by their AbortSignal until it aborts, instead of by a permanent engine root. A detached element whose listener refers back to the element can therefore be garbage-collected, while listeners of elements your game still uses keep working. Listener behavior is unchanged: duplicates, capture, once, handleEvent objects, signal and changes made during a dispatch follow the DOM standard, and a listener keeps the calling page context of its registration (for example the source of a message it posts), as in Chrome. Inline on… handlers work the same way, whether set from script (element.onclick = …) or written as an HTML attribute (onclick="…"): a detached element whose handler refers back to it can be garbage-collected. Their behavior is unchanged too: reading the property returns the same function, null removes the handler, replacing a handler keeps its place among the listeners, return false cancels the event, and window.onerror and window.onbeforeunload keep their special arguments and return values. An HTML attribute handler on an element (onclick="…") previously failed to compile silently, so reading the property returned null and the attribute did nothing; it now compiles and can use the element's, its form's and the document's properties by name, as in the HTML standard. Errors and stack traces from such a handler report the line and column inside the attribute's code, on its first line too; this is covered by engine tests, not yet by a browser run. Known difference from the HTML standard and Chrome: calling toString() on such a handler returns the attribute's code but not the exact text the HTML standard defines (for example function onclick(event) {, a line break, the code, a line break and }); the handler name and the first line break are missing. The handler's name and length are correct, so avoid relying on the exact toString() text. This fix and the browser check of inline handler collection have not been verified in a full browser run yet. Release of removed frames as a whole is still being verified.

HTML attribute handlers follow your page's Content Security Policy: when script-src-attr (or, if it is absent, script-src) does not allow inline code, the attribute is ignored and the property stays null, whether it comes from the HTML markup or from setAttribute. This now also covers <body> attributes that set a window handler, such as onpopstate or onresize, which previously ran even under a policy that forbids them. A policy that allows inline code ('unsafe-inline') keeps the handlers working; under Trusted Types, setting such an attribute from script requires a TrustedScript value, as in Chrome. To allow only specific handlers, list 'unsafe-hashes' and the sha256 hash of the exact attribute text: a handler whose text differs is blocked, and a nonce never allows an attribute handler. Without 'unsafe-hashes', even a matching hash does not allow an attribute handler. This works in script-src-attr and, when that is absent, in script-src, for <body> window handlers too. A browser check of these cases is pending.

The current Linux frame-retention smoke releases its iframe element, document and probe after eight collections; additive-listener GC controls pass in normal and JITless modes. Inline-handler GC controls also pass in normal and JITless CI. This verifies those scenes, not a universal page-retention guarantee.

During the current V8 migration, macOS/iOS CI results are excluded from the publication gate by user instruction; missing Apple checks remain unverified. Linux, Windows, Android and shared checks still gate publication.

Scoped-handler source-text compatibility remains open. Native normal/JITless proofs show that ordinary V8 properties preserve external accessor receivers, but DOM key ordering and generated hook compatibility need further gates. No experimental DOM backend was adopted. Named-property reads now honor LegacyOverrideBuiltIns for Document (including its inherited XMLDocument binding) and dataset: supported names take precedence over prototype properties, while own/unforgeable properties still win. For example, data-to-string makes element.dataset.toString return the attribute value; removing the attribute restores the inherited method. Browser confirmation is in CI. This fixes read visibility; definition/deletion/enumeration and source-text gaps remain open.

Documentation patch paths now use portable separators, fixing Linux reconstruction of the migration handoff series; runtime behavior is unchanged.

Dynamic DOM named-property enumeration preserves embedded NUL and Unicode names without C-string conversion or permanently pinning their atoms. Normal/JITless native regressions pass; the required browser smoke runs in CI and is pending for this change. Overall page retention remains open.

Named own-key enumeration excludes names hidden by prototypes or own/unforgeable properties, including null prototypes and reentrant expando creation. Own properties short-circuit prototype queries. This correction targets the actual Document reflector. Window.HTMLDocument now uses the standard alias of Document through existing WebIDL generation; the unused subclass is removed. Constructor/prototype identity and property attributes have required browser regressions; normal/JITless browser checks passed in the dac65 CI batch.

Indexed DOM collections keep array-index keys separate from numeric named keys, preventing duplicate native ownKeys results. Noncanonical numeric names and numeric names on Document remain available. Native regressions and required Windows/Linux browser CI passed.

Visible named DOM properties without a named deleter now reject deletion according to WebIDL, while own expandos and Dataset retain their ordinary/deleter behavior. Form delete support checks do not register a named read or keep a renamed control in its past-names map. Required Windows/Linux browser verification passed in the735a batch. Visible Chrome156 differs on these deletions and exposes a distinct HTMLDocument constructor; Roves follows the normative expectations here, so this is not a claim of Chrome parity. Indexed deletion, property definition, prototype-query conformance, inline-handler source text and overall retention remain under migration.

Named-property visibility now reuses V8-backed descriptor traversal rather than a Proxy has query on prototypes. Accessor getters are not invoked by this presence check; native normal/JITless tests and required browser fixtures passed in the0eb CI batch. This is a bounded correction, not complete WebIDL conformance.

Roves keeps its Servo shell while replacing internal services with maintained libraries where that removes duplicate implementation. rusty_v8 is already used; the local production source now wires deno_core into Servo's single-document module loader, pending required normal/JITless Rust and browser CI. DOM/layout/rendering stay in Servo initially. No separate Chromium or Deno installation is planned.

The product direction is one Servo-shell window and one game document, with internal routes such as TanStack Router using the History API and fragments. Additional tabs/windows and iframes are not required. Game-driven reloads and full-document navigations are outside this scope. The planned engine policy must block unsupported attempts before replacing the document and emit at least a useful console/log warning, without crashing or opening a blocking alert. Repeated attempts must not flood logs. The confirmed behavior is a discreet non-modal notice in development and logs only in distributed games. External links may open the system browser only after a real user click; automatic attempts are blocked and logged, without navigating inside Roves. Initial shell loading/shutdown remain lifecycle requirements. The isolated deno_core evaluation has been followed by a local source integration; cross- platform CI and real-scene checks remain necessary before calling it adopted or verified.

The single-document policy is implemented in source and its browser smoke checks are awaiting the current CI batch; actual system-browser handoff and notice rendering still need user/UI verification. The previous multi-frame/WindowProxy NO-GO does not decide the single-document scope. DOM/events, security, HTML microtasks, module loading, GC and JITless remain migration checks. No separate Deno installation or runtime/performance benefit is claimed; replaced Servo services may be removed instead of kept alongside a second implementation.

The macOS gamepad probe runs independently from the required Windows/Linux probe matrix, so its cancellation/failure no longer skips their packaging and Steam checks. Apple checks remain enabled and visible; required non-Apple failures still block dependent jobs.

An isolated deno_core probe passes Linux/Windows normal and JITless CI (four jobs, two Rust tests with twelve logical scenarios). It covers modules, bootstrap namespace removal, native cppgc class ownership and a native Rust async operation. This is not Servo DOM integration or evidence that overall retention/performance is solved.

The shell rejects auxiliary windows before allocating another WebView, logs once per application and shows a dismissible non-modal notice in CLI development launches; bundled games keep logs only. Required Linux/Windows build and packaging checks pass. Visual notice behavior, full navigation/reload refusal and trusted-click external links still need work.

The production Deno integration now exists in the local working tree, replacing Roves' old module graph with Deno's loader on the existing V8 and Servo DOM. It is not yet verified or released: required normal/JITless compile/tests and Linux/Windows browser integration must pass. Do not use an unverified source checkpoint as a release artifact.

Static module fetching now advances in steps and releases the runtime between network responses, so other script, timers and input can run while a response is pending. Compilation, resolution and final linking remain synchronous and may pause the thread; dynamic imports remain asynchronous. Static evaluation errors may arrive as unhandledrejection instead of error/window.onerror. Onerror-only crash overlays may miss them; classic errors and fetch/parse/link/dynamic-import contracts remain separate. The new server-probe smoke has not yet run in CI, and real-scene impact of synchronous work remains unmeasured. No latency threshold or performance benefit is proved.

Current implementation status: migration handoff.

Current single-document Deno integration status

The local implementation uses deno_core with Servo DOM/layout/rendering and the existing shell. The previous standalone probe is not evidence of completed browser integration. Linux/Windows normal/JITless CI, notice rendering and real-click OS handoff still require verification. Overall retention is unresolved.

History/hash routes remain supported in one document. Full document navigation, reload, iframe documents and extra windows are blocked before replacing game state, with bounded logs and a development-only non-modal notice. Trusted HTTP(S) anchor/area activations use the system URL handler; automatic and synthetic requests cannot authorize that handoff.

Tracked provisional differences: network fetch waits now yield between polls, but source compilation, resolution and final linking remain synchronous; static evaluation errors use unhandledrejection; inline import.meta.url values have distinct #roves-inline-module-N fragments. Relative asset bases and external URLs remain unchanged. A new timer-issued probe records whether the document progresses during a deliberately held response; it still needs browser CI and real-scene follow-up. No acceptable latency threshold is claimed. Dynamic imports remain asynchronous.

JSON modulepreload is temporarily unavailable: a bounded warning and asynchronous link error replace the old false-success behavior. Typed JSON imports remain supported and untyped imports must reject. Restoring preload is an explicit optimization backlog item; measure unused-data bandwidth/memory costs as well as first-use latency before recommending it.

The adapter preserves module referrers, worker root clients and classic source fetch options; internal Deno/Node module namespaces are denied. V8's public no-compilation-cache guard fixes a reproduced Function import-referrer cache issue; Deno's module cache remains enabled. Its startup/compilation cost is unmeasured. Consult the engine migration handoff for current CI, source patch replay and remaining checks. Claude stays deferred until October30,2026 17

Europe/Rome; Codex continues directly and uses one verified-reset retry if its own five-hour quota is near exhaustion, without periodic polling or chained retries.

The first integrated browser build exposed two compiler errors and obsolete Linux runner simulations. Corrections and redirect/MIME/referrer/SRI checks are being validated; this is not yet a completed browser migration or a retention fix.

Per-process runtime logs preserve static-load pause observations across fresh smoke launches. These isolated-cache CI scenes do not replace cold/warm/slow-network and frame/input testing.

The first compiled browser integration exposed a startup ordering panic when the module loader requested Document-owned task sources before attachment. Installation is moved after attachment, before interfaces and game scripts; runtime browser proof remains pending.

The contributor V8 smoke runner uses Servo hard-fail mode for disposable processes: native thread panics fail the process promptly. Packaged game crash behavior is unchanged.

Cold/warm/controlled-slow module scenes report timer and frame observations as validated JSON without an accepted latency threshold. A single Chrome MCP reference exists; the Roves comparison remains pending successful startup CI, not a proved performance gain.

Static invalid import attributes preserve TypeError while parse failures retain SyntaxError. The native module suite verifies both modes; browser confirmation remains pending CI.

Static graph errors retain Deno source filenames, line/column and formatted stacks in Servo reports. Metadata stays on the error object through V8 private properties, without a registry or extra roots. Native suites pass112 normal/111 JITless; browser verification and the separate inline HTML line offset remain pending.

SRI module bodies arriving before metadata are preserved until final fetch/security checks. The corrected browser path still requires CI confirmation.

Engine V8 CI adds real Windows module contracts in normal and compiled JITless modes, reusing the existing smoke runner and per-process runtime artifacts. Linux keeps its full suite; no action input or bundle output changes. The preceding32d4 required batch is green; new Windows runtime verification remains pending its own CI.

Native lifecycle coverage checks pending dynamic network imports and late responses after runtime destruction in both modes. Graceful window shutdown during static fetching remains a separate verification requirement.

Repeated cached imports preserve namespace identity with a single fetch/evaluation in the native normal/JITless tests. The new browser check brings module-order coverage to20 and still requires its own CI execution.

Inline HTML diagnostic offsets remain open. The tested range-map encoding candidate loses later-line columns and was rejected without adding a production dependency or fork. This does not reject Deno integration or every source-mapping alternative.

Windows V8 CI now shares mach build ANGLE DLL staging before browser execution; missing EGL/GLES dependencies fail preparation. This fixes startup coverage without changing action inputs or bundle outputs. Positive Windows module results await the corrected CI.

Inline diagnostic mapping now uses the public Deno loader callback and two distinct source-map anchors per line, preserving columns where the earlier single-anchor probe failed. Existing embedded maps keep priority; module/import identities are unchanged. Full native suites pass115 normal/114 JITless, including a meaningful negative regression. The new21st browser check still requires CI. This supersedes the open-offset status above at source level, without claiming browser verification or resolved overall retention.

The Windows browser jobs now start correctly. Smoke fixture JavaScript/JSON MIME types are explicitly defined through Python's standard server extension map, preventing host registry associations from serving .mjs as text/plain. The deliberate wrong-MIME rejection remains. The actual browser result still awaits corrected CI; Linux and native checks are green.

The dd653 integration batch is green: Linux/Windows browser module contracts (21 required checks) in normal/JITless, native runtimes, Android, packaging and patch replay. ANGLE/MIME startup and inline HTML diagnostics now have integrated CI confirmation. Manual UI/click/ shutdown verification, provisional static pauses and overall retention remain separate.

Module smoke coverage now also records initial static loading separately from modules inserted at runtime (22 required checks). Validated startup/timer observations are retained in CI summaries without a performance threshold. The preceding6992 CI batch is green; new startup coverage awaits its own CI. No action input or bundle format changes.

A stricter lifecycle investigation found an outstanding deno_core0.413 correctness gap: importing a module already under static top-level await can settle too early, including an async descendant. The prior green CI did not cover this case. The partial evaluation prototype was rejected; no production fork or workaround is shipped. See the migration handoff0424. Host-loader release under pending TLA is independently tested in both modes.

Inline diagnostic mapping reuses deno_core's public sourcemap re-export, removing a duplicate direct version pin while retaining the same transitive codec. Native normal/JITless mapping checks pass. The cached-static-TLA correctness gap remains open; its proposed library patch has not been adopted.

The game-blocking cached-static-TLA bug now has an authorized temporary deno_core0.413 snapshot with the minimal async-graph guard, preserved MIT license and removal TODO. Upstream: issue37097, draft PR37098. Native suites pass117 normal/ 116 JITless. Browser coverage now requires23 module checks; integrated CI is still needed. CI --build checks propagate Cargo failures, preventing use of a stale cached binary. No action inputs, bundle format or privileged game APIs are introduced.

La regressione0430 verifica che un fetch statico sospeso non esegua job JavaScript già accodati mentre il runtime è occupato

test normali e117 JITless verdi, con controllo negativo. Il batch precedente conferma23/23 controlli dei moduli nel browser Servo su Linux/Windows normale/JITless. Le prove desktop e la retention complessiva restano aperte.

La verifica0432 dello snapshot CI conferma il rilascio del ciclo DOM/listener rimosso nella scena documento unico, preservando il controllo connesso. È una prova circoscritta, non una dichiarazione di retention complessivamente risolta; dati in ROVES_PERFORMANCE.

Decisione29ottobre2026: compatibilita SourceText degli handler e preload JSON sono nel TODO, fuori dai criteri di completamento della migrazione V8. Non risultano implementati; gli handler ordinari e gli import JSON con type json restano utilizzabili.

On this page