Truly independent web browser
Find a file
Shannon Booth 5bed8f4055 LibURL+LibWeb: Make URL::basic_parse return an Optional<URL>
URL::basic_parse has a subtle bug where the resulting URL is not set
to valid when StateOveride is provided and the URL parser early returns
a valid URL.

This has not surfaced as a problem so far, as the only users of the
state override API provide an already valid URL buffer and also ignore
the result of basic parsing with a state override.

However, this bug surfaces implementing the URL pattern spec, which as
part of URL canonicalization:
 * Provides a dummy URL record
 * Basic URL parses that URL with state override
 * Checks the result of the URL parser to validate the URL

While we could set URL validity on every early return of the URL parser
during state override, it has been a long standing FIXME around the code
to try and remove the awkward validity state of the URL class. So this
commit makes the first stage of this change by migrating the basic
parser API to return Optional, which also happens to make this subtle
issue not a problem any more.
2025-01-11 10:08:29 -05:00
.devcontainer Devcontainer: Add a Fedora 41 devcontainer for use in CI 2024-12-31 13:42:50 -07:00
.github Meta: Switch to clang-format-19 as the standard formatter 2024-12-28 05:39:32 -08:00
AK AK: Make ScopeGuard and ArmedScopeGuard [[nodiscard]] 2025-01-09 18:36:34 +00:00
Base/res LibWeb/CSS: Implement the color-scheme CSS property 2025-01-08 11:18:13 +00:00
Documentation Documentation: Mention TODOs and FIXMEs as potential sources of work 2025-01-05 12:02:16 +01:00
Libraries LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
Meta IDLGenerators: Set Iterator @@toStringTag with correct descriptor 2025-01-11 10:02:48 -05:00
Services WebDriver: Actually create a UUID for session_id 2025-01-03 13:15:52 -08:00
Tests LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
Toolchain Meta: Update vcpkg to the December 2024 release 2024-12-22 11:33:19 +01:00
UI UI/AppKit: Add debug menu to clear all cookies 2025-01-10 14:57:26 +00:00
Utilities LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
.clang-format
.clang-tidy Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
.clangd
.editorconfig
.gitattributes
.gitignore Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
.gn
.mailmap
.pre-commit-config.yaml
.prettierignore Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
.prettierrc
.swift-format
.ycm_extra_conf.py
CMakeLists.txt CMake: Add workaround for binutils+patchelf incompatability 2024-12-12 17:22:34 -07:00
CMakePresets.json CMake: Rename our triplets to their canonical names 2024-12-22 15:48:30 -07:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Meta: Switch to clang-format-19 as the standard formatter 2024-12-28 05:39:32 -08:00
flake.lock Flake: Add and run formatter + Rename devshell 2024-12-18 15:15:42 +00:00
flake.nix Flake: Add and run formatter + Rename devshell 2024-12-18 15:15:42 +00:00
ISSUES.md
LICENSE
README.md Libraries: Remove LibArchive 2024-11-25 13:37:45 +01:00
SECURITY.md
shell.nix Flake/devshell: Add more useful packages 2024-12-27 17:13:26 -07:00
vcpkg-configuration.json
vcpkg.json Meta: Update ffmpeg to 7.1 2025-01-06 12:29:02 +01:00

Ladybird

Ladybird is a truly independent web browser, using a novel engine based on web standards.

Important

Ladybird is in a pre-alpha state, and only suitable for use by developers

Features

We aim to build a complete, usable browser for the modern web.

Ladybird uses a multi-process architecture with a main UI process, several WebContent renderer processes, an ImageDecoder process, and a RequestServer process.

Image decoding and network connections are done out of process to be more robust against malicious content. Each tab has its own renderer process, which is sandboxed from the rest of the system.

At the moment, many core library support components are inherited from SerenityOS:

  • LibWeb: Web rendering engine
  • LibJS: JavaScript engine
  • LibWasm: WebAssembly implementation
  • LibCrypto/LibTLS: Cryptography primitives and Transport Layer Security
  • LibHTTP: HTTP/1.1 client
  • LibGfx: 2D Graphics Library, Image Decoding and Rendering
  • LibUnicode: Unicode and locale support
  • LibMedia: Audio and video playback
  • LibCore: Event loop, OS abstraction layer
  • LibIPC: Inter-process communication

How do I build and run this?

See build instructions for information on how to build Ladybird.

Ladybird runs on Linux, macOS, Windows (with WSL2), and many other *Nixes.

How do I read the documentation?

Code-related documentation can be found in the documentation folder.

Get in touch and participate!

Join our Discord server to participate in development discussion.

Please read Getting started contributing if you plan to contribute to Ladybird for the first time.

Before opening an issue, please see the issue policy and the detailed issue-reporting guidelines.

The full contribution guidelines can be found in CONTRIBUTING.md.

License

Ladybird is licensed under a 2-clause BSD license.