Truly independent web browser
Find a file
Andreas Kling aae191aa33 LibWeb: Bail from various navigable operations when no active window
If we end up in a situation where the navigable no longer has an active
window, we can't perform navigation or many other navigable operations.

These are all ad-hoc, since the navigables spec is basically all written
as if there's always an active window. Unfortunately, the active window
comes from the active document's browsing context, which is a nullable
concept even in the spec, so we do need to deal with null here.

This removes all the locally reproducible crashes when running WPT over
the legacy Japanese encoding directory on my computer.

Yes, this is a bit of a monkey patch, but it should be harmless since
we're (as I understand it) dealing with navigables that are still
hanging around with related tasks queued on them. Once all these tasks
have been completed, the navigables will go away anyway.
2024-10-05 16:24:10 +02:00
.devcontainer Meta: Rename devcontainer to Ladybird 2024-07-11 08:48:15 -06:00
.github CI: Switch Linux runners to Ubuntu 24.04 2024-10-02 06:41:20 -04:00
AK Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Base/res Base: Remove old LibWeb demo pages 2024-10-03 11:06:29 +02:00
Documentation Documentation: Emphasize getting started by troubleshooting WPT tests 2024-10-04 20:01:42 +02:00
Ladybird Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Meta LibWeb+LibURL: Move HTML::Origin to URL::Origin 2024-10-05 10:46:30 +02:00
Tests LibURL: Do not treat port of 0 as a null port in Origin 2024-10-05 10:46:30 +02:00
Toolchain Meta: Update vcpkg to fix build error 2024-10-04 12:00:48 -06:00
Userland LibWeb: Bail from various navigable operations when no active window 2024-10-05 16:24:10 +02:00
.clang-format
.clang-tidy Everywhere: Remove references to the kernel 2024-06-03 10:53:53 +02:00
.clangd Meta: Add .clangd config file (with project-recommended defaults) 2024-07-09 04:40:52 -06:00
.editorconfig
.gitattributes LibGfx: Remove support for the various "portable" image formats 2024-06-17 21:57:35 +02:00
.gitignore Meta: Add provision for user-specified port variables to vcpkg 2024-07-07 15:56:59 +02:00
.gn
.mailmap Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
.pre-commit-config.yaml Meta: Drop the --no-ports arg from .pre-commit-config.yaml 2024-09-11 08:29:54 +01:00
.prettierignore Meta: Remove home/anon directory from .prettierignore 2024-07-17 09:57:46 -06:00
.prettierrc
.swift-format Meta: Add swift-format configuration 2024-07-30 18:38:02 -06:00
.ycm_extra_conf.py Meta: Make YCM return flags as Python list 2024-07-06 14:50:43 -06:00
CMakeLists.txt CMake: Update homepage url in project() declaration to point to .org 2024-09-23 16:40:08 -06:00
CMakePresets.json CMake: Enable running unit tests with a Debug build/preset 2024-08-28 01:13:16 -06:00
CODE_OF_CONDUCT.md Meta: Add code of conduct (from the Ruby community) 2024-10-02 09:49:52 +02:00
CONTRIBUTING.md LibMedia: Absorb LibAudio 2024-09-12 10:01:19 +02:00
flake.lock
flake.nix Meta: Remove SerenityOS components not needed for Ladybird 2024-06-03 10:53:53 +02:00
ISSUES.md Meta: Add guidance on how to write reduced test cases 2024-07-25 16:59:09 +02:00
LICENSE Meta: Update root LICENSE to say Ladybird instead of SerenityOS 2024-06-04 07:25:44 +02:00
README.md LibMedia: Absorb LibAudio 2024-09-12 10:01:19 +02:00
SECURITY.md Meta: Update security policy to include private vulnerability reporting 2024-08-23 12:06:05 -06:00
vcpkg-configuration.json Meta: Add overlay port for vulkan-loader 2024-07-07 15:56:59 +02:00
vcpkg.json Meta: Update vcpkg to fix build error 2024-10-04 12:00:48 -06: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
  • LibArchive: Archive file format support
  • 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.