mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
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.
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Forward.h | ||
| Host.cpp | ||
| Host.h | ||
| Origin.cpp | ||
| Origin.h | ||
| Parser.cpp | ||
| Parser.h | ||
| Site.cpp | ||
| Site.h | ||
| URL.cpp | ||
| URL.h | ||