Hello friends! On November 23, Ladybird went into alpha, and you can now download it for macOS and Linux. :^)
Since then, we’ve heard from hundreds of people around the world, and the reactions have been almost entirely positive. Your excitement is contagious, and it has all of us eager to keep improving Ladybird!
Welcoming new sponsors
Ladybird is entirely funded by the generous support of companies and individuals who believe in the open web. This month, we’re excited to welcome the following new sponsors:
You can see everyone currently supporting the project on our sponsors page, and we’re grateful to all of them. If you’re interested in sponsoring, please contact us.
The first week of the alpha
About 10,000 people now use Ladybird every day, going by auto-update checks. In the first eight days, they sent us 3,762 reports through the browser’s Feedback button: 2,315 broken sites and 1,447 crashes. Thank you!
A report is only sent when you press Send, and you can read all of it first (#13970, #15511).
The broken site reports cover almost 1,200 different sites. YouTube and Google were reported most, followed by Twitch, GitHub and X. The crash reports come down to about 420 different signatures. About a quarter of all reports are already resolved!
Two thirds of the reports came from Linux. We knew people’s Linux setups would vary a lot, and they vary even more than we thought! Here is what has shown up in reports so far, with macOS for comparison:
| Linux | macOS | |
|---|---|---|
| Distributions | 33 | 1 |
| Desktops | 14 | 1 |
| Kernel versions | 69 | 14 |
| Graphics driver builds | 92 | - |
| GPU models | 186 | - |
- The distributions: Ubuntu, Fedora, Arch, Debian, CachyOS, Linux Mint, Pop!_OS, NixOS, EndeavourOS, Omarchy, Bazzite, Aurora, Zorin OS, Arch Linux ARM, Manjaro, secureblue, openSUSE Slowroll, Gentoo, Ageless, Ultramarine, AerynOS, Solus, stillOS, Slackware, Nobara, Fedora Asahi Remix, PikaOS, KDE Linux, GNOME OS, KDE neon, Alpine, SteamOS and Artix.
- The desktops: KDE Plasma, GNOME, Hyprland, Cinnamon, COSMIC, Xfce, niri, i3, Sway, MATE, Budgie, Unity, labwc and Wayfire.
Some of what we fixed that week:
- eBay answered every request with a 403, and Yahoo Finance charts didn’t load. We offered OpenSSL’s default TLS cipher suites, which include some that no major browser offers, and some CDNs reject or rate-limit clients that offer them (#16175).
- heise.de loaded without styles on a first visit. Its server allows 10 HTTP/2 streams at once, and we assumed 100 (#15832).
- Pages crashed on Linux once the terminal Ladybird was started from was closed, the next time our Rust code logged a message (#16277).
- NVIDIA’s driver tries to create device nodes even on machines without an NVIDIA GPU, and our sandbox killed the compositor for it (#15765).
- The Arch Wiki had invisible code blocks on Linux (#16091), 4chan jumped to the top of the page on every key press in the quick reply box (#15810), and tldraw drew a dot instead of a pen stroke (#15573).
Fixes like these go out as updates, through Sparkle on macOS (#14748, #14935) and through your package manager on Linux. There were four in the first week, each with release notes that say what changed and which sites it fixes.
New browser features
On macOS 26.4 and later, Ladybird can translate pages with Apple’s Translation framework, which does the translation on your computer. The translated text replaces the original in the page, and keeps its links and formatting (#13817, #14089).
WebAuthn landed, so sites can sign you in with passkeys. They can be kept in the macOS keychain or the Linux keyring, on a USB security key, or on a phone that you connect by scanning a QR code (#16265, #16449, #16504).
Also new:
- Notifications: sites you allow can show system notifications (#13511).
- Microphone indicator: a tab shows when it’s using your microphone. The indicator comes from the audio process, so a compromised renderer can’t hide it (#14092).
- Now Playing: on macOS, media keys and Control Center can play and pause what a page is playing (#14595).
- Looks: color themes, and a layout that puts everything in the sidebar (#14011).
- Find in page dims the page around matches, finds text inside same-site iframes, and ignores accents, so “cafe” finds “café” (#15102, #16088, #15224).
ladybird --headless=terminal draws a page in your terminal with the Kitty graphics protocol, and you can click, scroll and type in it, including over SSH (#14186).
Sites that work better
- Google: Gmail’s search box no longer stays collapsed to a button (#15775). In Google Docs, typing a space works (#16229) and emoji show up (#13877).
- GitHub: the pull request list shows statuses and times (#13971), and file names in diffs aren’t scrambled (#15059).
- ChatGPT: Backspace after a space no longer also deletes the last letter of the word (#15294).
- WhatsApp Web shows its QR code instead of asking for Chrome (#14071).
- YouTube: clicking the progress bar works in embedded videos (#14906), and 60 fps video no longer freezes every so often (#14265).
- Twitch: logging in no longer fails the site’s bot check (#14566).
- Arabic and Persian: some Arabic letters, like a final yeh, have their dots again (#13846), and selecting right-to-left text highlights the right characters (#14086).
We also hid service workers for now. They can’t run yet, and with the API hidden, sites that check for it fall back to code that works without it (#15222).
Some odd bugs
- breitbart.com grew the renderer by about a gigabyte per second. The site freezes an object and everything it can reach. Through
argumentsandfn.caller, it reachedwindowin Ladybird, and froze things its own analytics code still needed to change (#13695). - tryfi.com also grew the renderer by about a gigabyte per second, until it reached 16 GB. A fingerprinting script builds a longer and longer
.parent.parent.parentchain and waits for the browser to throw an error, which Ladybird never did (#14420). - usmc-mccs.org loads itself in a hidden iframe, which loads itself, 31 levels deep, until the URL gets too long for the server. We now stop at 10 levels (#15280).
- html5accessibility.com showed the text of its articles as ornaments on macOS. It asks for the font Hoefler Text. “Hoefler Text Ornaments” claims the same family name, and we picked that (#15214).
- Viewing the source of a page’s source , a few times over, crashed the browser or hung the whole machine (#13598).
More of the web platform
- WebRTC: a first implementation, with audio calls, video calls and data channels. Echo cancellation and handling of packet loss are still missing (#13323, #15447).
- CSS: gap decorations in grids (#16020, #16115), custom highlights (#13706), and transitions on custom properties (#13698).
Memory
Until this month, every tab and every web worker had a process of its own, and a tab you hadn’t looked at for hours kept all of its memory. Here’s what changed, with four tabs as an example:
Tabs of the same origin now usually share a process (#14072). In Settings, you can turn sharing off, or widen it to the whole site, so mail.example.com and docs.example.com share one too. More sharing uses less memory, but a crash takes down every tab in the process (#15212). Web workers now run as threads inside the page’s process (#14032).
Ladybird now discards background tabs when the system runs low on memory, or when they’ve been hidden for two hours. Switching back to a discarded tab reloads it. Tabs that are playing audio or holding text you typed, among others, are not discarded (#15199).
We also fixed single pages that used far too much memory:
- A page on krillion.to took 13 GB of memory in the compositor, because drawing many narrow strips from one image could upload the whole image each time. Now 0.3 GB (#15670).
- 54 autoplay videos on one Vimeo page took almost 9 GB as soon as the page loaded, because we decoded all of them, including the ones off screen. Loading it now takes about 0.5 GB, though scrolling through all of them can still use several gigabytes (#15342).
- DartPad grew past 6 GB and was terminated, mostly because appending to a string copied the whole string each time (#14728). Its WebAssembly arrays also used 8 bytes for every 1-byte element. It now peaks at 2.7 GB, where Chrome peaks at about 2 GB (#14734).
A new JavaScript frontend and style engine
We replaced the lexer, parser and bytecode generator of our JavaScript engine (#13923). Functions are now compiled the first time they’re called, not when the script loads, because many functions on a page never run. With this and three follow-up changes, loading the Google Docs script bundle cold, on an otherwise empty page, went from 2.6 seconds to 0.4, and from 2.5 GB of memory to 0.3 GB.
Strings already used one byte per character when they were pure ASCII. Now they do for all Latin-1 text (#13612). YouTube’s script bundle is 10.8 million characters long. One of them is an “ö” in a license comment, and that used to double the memory for the whole string.
We replaced the style engine too (#13655). The new one matches selectors, cascades and computes values on a pool of threads. A new front half for the CSS parser also makes parsing style sheets about twice as fast (#14597).
Layout on many threads
Layout now uses multiple threads!
Flex and grid items, and other parts of a page that don’t depend on each other, are laid out in parallel (#13803). So is building the layout tree in the first place (#14636).
Ordinary block layout is harder, because a float placed by one box can push aside content in any box after it. So each child is laid out ahead of time on another thread as if there were no floats. When the main layout pass reaches it, it keeps that result if no float reaches the child, and lays it out again if one does (#13862). On a 16-core machine, the first layout of a test page of a thousand paragraphs is about three times as fast. The real pages we measured gained between 1.5x and 2.3x.
Compositing with tiles and layers
The compositor used to redraw everything that changed into one surface. When you scroll, everything changes, so every scroll frame repainted the whole viewport.
Pages are now split into layers, like the document, a nested scroller, a sticky header, an iframe, or a video, and each layer is kept as tiles. Scrolling moves the layers and repaints nothing. A tile is painted once, shortly before it scrolls into view, and then kept, and a small change repaints only the tiles it touches (#15285, #14747).
On macOS, we give CoreAnimation every layer it can show itself, so scrolling moves layers around instead of copying pixels (#15366). Frames also go from our compositor to the window server without passing through the UI process, so a busy UI thread no longer stalls scrolling and animation (#14406). Linux still composites everything itself. Because the system shows videos directly now, HDR video plays in HDR on Macs that support it (#14500).
We also stopped recording the whole page for every frame. Only the area near the viewport is recorded, and only the parts that changed are sent to the compositor (#14837). The single-page HTML spec is 2.3 million pixels tall. It now loads in 5.5 seconds instead of 8.5, and repainting one heading on it went from 7 frames per second to 47.
Benchmarks
Our benchmark scores kept going up this month. It’s slow work, and we have a lot more of it ahead of us!
Web Platform Tests (WPT)
We ended the month at 2,204,810 WPT subtests, a gain of 20,088. CSS had the biggest gain, at about 9,000.
Security and process isolation
The browser process used to do everything: the windows, bookmarks and history, and also managing tabs, renderers and the other helper processes. With all of that in one process, it was hard to reason about and hard to sandbox, so we split it in two. The UI process keeps the windows, bookmarks and history. A new Hub process manages tabs, renderers and helpers, and it’s the one renderers talk to, so it should eventually have no access to your files. Neither process is sandboxed yet (#14109).
Some of what was possible before we fixed it:
- Any click let a page read your clipboard. Now it takes a paste, or data the page’s own site put there (#14090).
- While WebDriver was running, any web page could drive the browser through its local endpoint (#14916).
- A compromised renderer could claim another site’s URL for a navigation, and receive that site’s response, fetched with your cookies (#14938).
- The sites you had open were visible to every program on your computer , on the command lines of our network processes (#16032).
We also enforce SameSite cookies now (#14037), and we changed our security policy: vulnerabilities are now reported privately, and accepted reports get a CVE (#15204).
More C++ moved to Rust
Just over half of our web API interfaces are now implemented in Rust (#16019). This month, the core of the garbage collector (#15296) moved from C++ to Rust, along with DOM nodes and their tree algorithms (#16318, #16363, #16384), and we rewrote our DNS resolver in Rust (#15784).
That’s it for November. If you’re trying the alpha, thank you, and please keep the reports coming. See you next month!