ladybird/Libraries/LibURL
Sam Atkins 9a7ce901b7 LibURL: Gracefully handle a host having no public suffix
Specifically, after implementing some recent spec changes to navigables,
we end up calling `get_public_suffix("localhost")` here, which returns
OptionalNone. This would previously crash.

Our get_public_suffix() seems a little incorrect. From the spec:
> If no rules match, the prevailing rule is "*".
> https://github.com/publicsuffix/list/wiki/Format#algorithm

However, ours returns an empty Optional in that case. To avoid breaking
other users of it, this patch modifies Host's uses of it, rather than
the function itself.
2025-01-21 18:17:18 +01:00
..
CMakeLists.txt LibURL: Implement Site concept 2024-11-30 12:07:39 +01:00
Forward.h LibURL: Implement Site concept 2024-11-30 12:07:39 +01:00
Host.cpp LibURL: Gracefully handle a host having no public suffix 2025-01-21 18:17:18 +01:00
Host.h LibURL: Implement Host::public_suffix() and registrable_domain() 2024-11-30 12:07:39 +01:00
Origin.cpp LibURL: Implement Site concept 2024-11-30 12:07:39 +01:00
Origin.h LibURL: Implement Site concept 2024-11-30 12:07:39 +01:00
Parser.cpp LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
Parser.h LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
Site.cpp LibURL: Implement Site concept 2024-11-30 12:07:39 +01:00
Site.h LibURL: Implement Site concept 2024-11-30 12:07:39 +01:00
URL.cpp LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
URL.h LibURL+LibWeb: Make URL::serialize return a String 2024-12-04 16:34:13 +00:00