ladybird/UI
Timothy Flynn c011dc766f LibWebView+WebDriver+UI: Migrate headless browsing to main Ladybird exe
We currently create a separate headless-browser application to serve two
purposes:

1. Allow headless browsing to take a screenshot of a page or print its
   layout tree / internal text.
2. Run the LibWeb test framework.

This patch migrates (1) to the main Ladybird executable. The --headless
flag enables this mode. This matches the behavior of other browsers, and
means we have one less executable to ship at distribution time.

We want to avoid creating too many AppKit / Qt facilities in headless
mode. So this involves some shuffling of application init to ensure we
don't create them until after we've parsed the command line arguments.
Namely, we avoid creating the NSApp in AppKit and QCoreApplication in
Qt. Doing so also requires that we don't create the application event
loop until we've parsed the command line as well, because the loop we
create depends on whether we're creating those UI facilities.
2025-06-10 12:04:59 -04:00
..
Android UI: Remove outdated references to LADYBIRD_SOURCES 2025-06-10 12:04:59 -04:00
AppKit LibWebView+WebDriver+UI: Migrate headless browsing to main Ladybird exe 2025-06-10 12:04:59 -04:00
cmake LibWebView: Split about:settings into modules 2025-04-23 19:58:58 -04:00
Headless LibWebView+WebDriver+UI: Migrate headless browsing to main Ladybird exe 2025-06-10 12:04:59 -04:00
Icons Everywhere: Move the Ladybird folder to UI 2024-11-10 12:50:45 +01:00
Qt LibWebView+WebDriver+UI: Migrate headless browsing to main Ladybird exe 2025-06-10 12:04:59 -04:00
.gitignore Everywhere: Move the Ladybird folder to UI 2024-11-10 12:50:45 +01:00
CMakeLists.txt LibWebView+WebDriver+UI: Migrate headless browsing to main Ladybird exe 2025-06-10 12:04:59 -04:00
Info.plist Everywhere: Move the Ladybird folder to UI 2024-11-10 12:50:45 +01:00