Huny's Dev Blog
huny.dev

Inside Ladybird Browser Alpha (2026.47.7): Off-Main-Thread Layout, Rust LibJS JIT, and the Gap Between 2.18M WPT Passes and Real-World Benchmarks

An architectural deep dive into Ladybird Browser Alpha (2026.47.7)—covering its off-main-thread style/layout pipeline, Rust LibJS native JIT, flap WebAssembly engine, the gap between 2.18M passing WPT subtests and Speedometer 3.1/memory benchmarks, and workarounds for the iframe srcdoc windows-1252 encoding bug (#15616).

Hun Jang
Hun Jang Nov 26, 2026

Ladybird Browser Alpha 2026.47.7 Independent Engine Architecture (LibWeb, Rust LibJS JIT, flap Wasm), Off-Main-Thread Style & Layout, and WPT vs. Speedometer 3.1 Benchmark Gap

On November 23, 2026, Ladybird released its first public alpha (2026.47.7)—an independent web browser written from scratch without forking Chromium Blink, Apple WebKit, or Mozilla Gecko—after passing 2,184,722 Web Platform Tests (WPT) subtests and overtaking Safari Technology Preview (2,172,990). However, high WPT specification compliance is entirely separate from production runtime throughput, memory efficiency, and security readiness. While Ladybird Alpha 2026.47.7 introduces a genuinely novel multi-threaded rendering pipeline that runs style, layout (#12377, #12400), and paint recording (#12432) off the main thread alongside a new Rust-based LibJS speculative JIT (#12613), independent benchmarks show it currently delivers roughly 36–42% of Chrome and Safari's Speedometer 3.1 throughput, consumes ~2.2x Chromium's memory across 25–26 isolated processes, and exhibits early alpha quirks such as <iframe srcdoc> defaulting to windows-1252 (Issue #15616) and windowed WebDriver click assertion crashes (TypeCasts.h:65).

This post cross-verifies the official Ladybird Alpha release announcement (2026.47.7), the official download and SLSA/Sigstore verification documentation, the October 2026 engineering newsletter, and independent hands-on benchmarks from DevOpen (Linux & macOS) and Classmethod (Apple M5 Pro) to examine how the engine works under the hood and what frontend and QA engineers need to account for today. All figures below reflect those primary documents and third-party benchmark reports (verified on 2026-11-26) rather than separate in-house benchmark runs.

1. Why Ladybird Alpha 2026.47.7 Matters for the Web Platform

Modern web browsing is dominated by three engine lineages: Google Chromium's Blink, Apple Safari's WebKit, and Mozilla Firefox's Gecko. Announced by Andreas Kling on November 23, 2026, Ladybird Alpha (2026.47.7) marks the first public rolling-release alpha of a completely independent engine stack—comprising LibWeb (HTML/DOM/CSS), LibJS (JavaScript), and a custom WebAssembly engine—capable of handling daily real-world web applications.

Backed by the Ladybird Browser Initiative, a US 501(c)(3) nonprofit organization, the project operates purely on donations and sponsorships with zero default-search-engine revenue deals, no user telemetry monetization, and no corporate sponsor influence over technical decisions.

Attribute
Ladybird Alpha (2026.47.7) Specification
Notes & Primary Source
Release Date & Update Channel
November 23, 2026 (Rolling release channel with automatic updates)
Core Engine Stack
LibWeb (HTML/DOM/CSS) + LibJS (Rust runtime & native JIT) + flap-based Wasm engine
Supported Platforms & Packages
macOS 14.4+ (Apple Silicon arm64 only), Linux (x86-64, ARM64 via Flatpak, Ubuntu 24.04 & 26.04+, Fedora 44 & 45)
No Intel Mac or Windows binaries in initial alpha (Official Download Page)
User-Agent Policy
Spoofs Chrome 153 (Chrome/153.0.0.0 Safari/537.36)
Avoids arbitrary server-side browser blocks (DevOpen Hands-On)
Graphics, Media & DRM
WebGL / WebGL 2 via ANGLE (60 FPS Three.js), 1080p YouTube via MSE, Acid3 96/100
WebGPU not exposed; Widevine, FairPlay & ClearKey DRM rejected (DevOpen Hands-On)

2. Under the Hood: Off-Main-Thread Layout and the Rust + flap Pipeline

Ladybird's engineering significance comes from three architectural decisions that depart from decades-old single-threaded browser engine assumptions.

2.1 Off-Main-Thread Style, Layout, and Paint Recording (#12377, #12400, #12432)

In traditional browser engines, JavaScript execution, style recalculation, and DOM layout share a single main thread and run sequentially. When a long-running JavaScript task blocks the main thread, CSS animations and UI state transitions freeze.

According to the October 2026 Ladybird newsletter, Ladybird decoupled these stages onto concurrent threads:

  • Dedicated Style/Layout and Paint Recording Threads (#12377, #12400, #12396, #12432, #12460): Style computation and layout execute on their own dedicated thread, while paint recording runs on another thread concurrently with JavaScript on the main thread.
  • On-Demand Synchronization for Layout Queries: Whenever JavaScript synchronously queries layout metrics (such as element dimensions), the main thread synchronizes and waits for pending layout work to finish so scripts never read stale layout state.
  • Uninterrupted Layout Animations Under Main-Thread JS Blocking (#12433, #12447, #12451, #12530): Because style and layout run off the main thread, CSS animations—including layout-inducing properties such as width and font-size—as well as :hover transitions continue animating smoothly even while JavaScript blocks the main thread for several seconds.

2.2 The C++-to-Rust Migration and Speculative Optimizing LibJS JIT (#12492, #12613)

After adopting Rust as its successor implementation language in February 2026, the Ladybird team migrated major engine subsystems out of C++. As documented in the October 2026 newsletter:

  • LibJS Runtime Moved to Rust (#12492): The JavaScript engine is now written entirely in Rust except for its flap-generated bytecode interpreter and the garbage collector.
  • LibWeb Subsystems Rewritten in Rust: CSS style computation is now 100% Rust (#12346, with the legacy C++ style code deleted), alongside WebGL (#12699), 2D Canvas (#12935), IndexedDB (#13287), Streams (#13083), and the URL parser (#12998).
  • Speculative Optimizing JS JIT (#12613, #12588, #12595, #12598): Compiles hot JavaScript functions to native machine code on x86-64 and AArch64 across Linux and macOS. It uses runtime type and object-shape profiling, speculative integer arithmetic assumptions, and function inlining, backed by differential fuzzing between the interpreter and JIT (#12601).
  • New Rust + flap WebAssembly Engine (#12963): Replaces the earlier C++ Wasm engine and Cranelift backend with an interpreter built in flap (Ladybird's internal DSL/compiler that targets x86-64, AArch64, and Windows x64 from a single source) plus a JIT supporting mid-loop On-Stack Replacement (OSR), Wasm exception handling, and Wasm GC—delivering a ~7x score increase on JetStream 3 WebAssembly workloads.

2.3 Multi-Process Sandboxing and Per-Site Network Isolation (#12647, #13144, #12604)

Ladybird enforces fine-grained process isolation across rendering, networking, and media decoding (October 2026 newsletter):

  • Cross-Site Renderer Isolation (#12647, #12296): Every tab runs in a sandboxed WebContent process, and cross-site <iframe> elements and cross-site popups are isolated in their own separate renderer processes by default.
  • Per-Top-Level-Site Network Processes (#13144, #12424): Each top-level site spawns its own dedicated Network process, partitioning the HTTP cache and third-party cookies at the process boundary.
  • Dedicated Audio, Image, and Video Decoder Processes (#12604, #12437, #12868): Each renderer spawns its own isolated Audio process (#12604) and Image Decoder process (#12437), while hardware video decoding runs in a dedicated process (using Vulkan on Linux, #12868) paired with a custom native MP4 demuxer (#12641).

3. WPT (2.18M Subtests) vs. Real-World Speedometer 3.1 & Memory Benchmarks

On October 26, 2026, Ladybird reached 2,184,722 passing subtests in the official Web Platform Tests (WPT) suite, moving ahead of Safari Technology Preview (2,172,990) and trailing Firefox (2,189,315) by only 4,593 subtests. During a five-day sprint from October 22 to 27, the team pointed AI coding agents at unimplemented WPT specifications, adding roughly 30,000 passing subtests in /css and 10,000 in /editing (+75,650 across October).

However, passing individual specification subtests does not automatically translate into competitive framework throughput or low memory overhead.

Benchmark / Test Environment
Ladybird Alpha (2026.47.7)
Safari / Firefox Baseline
Chrome / Chromium 158 Baseline
Key Takeaway & Source
WPT Passing Subtests (Late October 2026)
2,184,722
Safari TP: 2,172,990
Firefox: 2,189,315
Chrome: 2,244,397
Ahead of Safari TP; within 0.21% of Firefox (Official Newsletter)
Speedometer 3.1 (Apple M5 Pro, 64GB, macOS 27.2)
Median 21.7 (20.7 / 22.1 / 21.7)
Safari 27.2: Median 51.3 (51.3 / 55.6 / 50.8)
Chrome 158: Median 60.6 (60.6 / 62.2 / 59.8)
~42% of Safari and ~36% of Chrome speed (Classmethod Benchmark)
Speedometer 3.1 (Apple M1 Air, 16GB, macOS 27.0.1)
13.2 (±0.43 to ±0.60, ~53s/run)
-
-
Consistent completion on first-gen Apple Silicon (DevOpen Benchmark)
Speedometer 3.1 (Linux CachyOS, Kernel 7.3, i7-13650HX)
Avg 10.55 (10.5 / 10.6)
-
Chromium 158: Avg 26.5 (26.4 / 26.6)
Roughly 40% of Chromium 158 throughput (DevOpen Benchmark)
5-Tab Memory Footprint (Wikipedia, GitHub, Maps, Reddit, MDN)
Linux PSS: 2.85 GB (25 processes)
macOS footprint: ~2.8 GB (26 processes)
-
Linux Chromium 158 PSS: 1.28 GB
~2.2x Chromium memory due to fine-grained process isolation (DevOpen Benchmark)
JSLinux x86 Emulator Boot (Alpine Linux shell)
1.8 seconds
-
Chrome: 1.5 seconds
Near-parity on compute-heavy JS/Wasm emulation (Official Newsletter)

The divergence is clear: on tight compute loops like booting Alpine Linux inside the JSLinux x86 emulator (1.8s vs. Chrome's 1.5s), Ladybird's new Rust JIT and flap Wasm engine already perform close to V8. On DOM-heavy application benchmarks like Speedometer 3.1, mature browsers remain 2.4x–2.8x faster, and Ladybird's aggressive per-site/per-decoder process spawning results in 25–26 active processes consuming ~2.85 GB across five complex tabs.

4. Three Practical Alpha Quirks and Engineering Boundaries

When testing web applications or setting up experimental QA automation against Ladybird Alpha 2026.47.7, engineers should watch out for three verified behaviors:

4.1 <iframe srcdoc> Defaults to windows-1252 Instead of UTF-8 (Issue #15616)

During hands-on verification, Classmethod identified and reported LadybirdBrowser/ladybird#15616:

  • Root Cause: Under the HTML specification, <iframe srcdoc="..."> documents must default to UTF-8. In Ladybird Alpha 2026.47.7, if the srcdoc markup does not contain an explicit <meta charset="utf-8"> tag, the iframe's document.characterSet falls back to windows-1252.
  • Impact: Web-based EPUB readers, interactive code playgrounds, rich-text editors, and ad containers that inject multi-byte UTF-8 text (Korean, Japanese, emojis, or typographic smart quotes) into srcdoc iframes render garbled Latin-1 mojibake.
  • Mitigation: Always prepend <!DOCTYPE html><html><head><meta charset="utf-8"></head>... inside any dynamically constructed srcdoc string.

4.2 Windowed WebDriver Click Assertion Crashes (TypeCasts.h:65) vs. --headless

Ladybird ships with a built-in WebDriver server for automated testing. However, DevOpen's WebDriver test suite found that dispatching mouse click commands over WebDriver while Ladybird is running in a normal GUI window triggers an assertion crash in input event handling (TypeCasts.h:65, crashing 3/3 runs on Linux and 1/3 on macOS).

Crucially, running the exact same WebDriver click sequence with --headless succeeded reliably without crashing. Any CI/CD automation targeting Ladybird Alpha should enforce --headless.

4.3 No WebExtensions Yet and Explicit Security Disclaimer

WebExtensions are not implemented in 2026.47.7 (ad blocking relies solely on built-in EasyList content filter lists). Furthermore, Andreas Kling explicitly notes in the alpha release post: "We make no promises about security today. We want security nerds to hack it!" Given recent sandbox escape fixes—such as preventing a compromised renderer from asking the browser process to open arbitrary local files (#12582, #12590)—Ladybird Alpha should not be used with sensitive corporate credentials or banking sessions.

5. Supply-Chain Verification & Defensive <iframe srcdoc> Helper

The official Ladybird download page publishes cryptographic checksums alongside Apple notarization checks, Sigstore Cosign SLSA Provenance v1 bundles, and GitHub Attestation verification commands.

5.1 Verifying macOS (arm64), Linux Flatpak, and Source Tarball Artifacts

5.2 Guarding Against <iframe srcdoc> windows-1252 Fallback (Issue #15616)

6. Practical Evaluation Checklist for Engineering Teams

  • Verify Supply-Chain Signatures: Did you validate the 2026.47.7 binary or source tarball using codesign, cosign verify-blob-attestation, or the Flatpak GPG fingerprint (9436EDD8...) before running it?
  • Use Feature Detection Over User-Agent Sniffing: Because Ladybird spoofs a Chrome/153.0.0.0 User-Agent, does your application use explicit feature detection rather than assuming Chromium-only capabilities (such as WebGPU or Widevine DRM) from the UA string?
  • Harden <iframe srcdoc> Templates: Does every <iframe srcdoc> payload in your frontend include an explicit <meta charset="utf-8"> tag to avoid windows-1252 mojibake (Issue #15616)?
  • Enforce --headless in WebDriver Automation: Are your automated WebDriver scripts configured to run Ladybird exclusively in --headless mode to avoid the windowed GUI click assertion crash (TypeCasts.h:65)?
  • Isolate Test Profiles: Given the explicit no-security-promises alpha disclaimer, are you testing Ladybird in an isolated environment free of production SSO cookies and sensitive user credentials?

References & Official Sources (Verified 2026-11-26)

Korean version: Ladybird 브라우저 첫 알파(2026.47.7) 아키텍처 심층 분석: 오프 메인 스레드 레이아웃, Rust LibJS JIT, WPT 218만 통과와 실측 벤치마크의 간극Ladybird 브라우저 첫 알파(2026.47.7) 아키텍처 심층 분석: 오프 메인 스레드 레이아웃, Rust LibJS JIT, WPT 218만 통과와 실측 벤치마크의 간극

추천 글