ladybird/Libraries
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
..
LibCompress Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibCore LibWeb: Add documentation to the date parser format 2025-01-03 11:26:01 +00:00
LibCrypto LibCrypto: Add Ed448 OID to know algorithm identifiers 2025-01-11 11:13:06 +01:00
LibDiff
LibDNS
LibFileSystem Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibGC LibGC: Rename remaining occurrence of marked vector 2025-01-02 16:22:29 -07:00
LibGfx Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibHTTP
LibIDL LibGC: Rename MarkedVector => RootVector 2024-12-26 19:10:44 +01:00
LibImageDecoderClient
LibIPC
LibJS LibJS: Support date strings of the form "Thu, 09 Jan 2025 23:00:00" 2025-01-08 18:45:43 +01:00
LibLine Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibMain
LibMedia Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibRegex
LibRequests
LibRIFF
LibSyntax
LibTest
LibTextCodec
LibThreading LibThreading: Make MutexLocker [[nodiscard]] 2025-01-10 13:21:36 +00:00
LibTLS Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibUnicode
LibURL LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
LibWasm
LibWeb LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
LibWebSocket
LibWebView LibWeb/CSS: Implement the color-scheme CSS property 2025-01-08 11:18:13 +00:00
LibXML