Sam Atkins
900c131178
LibURL: Make URL::serialized_host() infallible
...
This can no longer fail, so update the return type to match.
This makes a few more methods now unable to return errors, but one thing
at a time. 😅
2024-11-30 12:07:39 +01:00
Sam Atkins
b83f015c70
LibURL: Implement Site concept
2024-11-30 12:07:39 +01:00
Sam Atkins
2e64e0b836
LibURL: Migrate Origin scheme from ByteString to String
2024-11-30 12:07:39 +01:00
Sam Atkins
7f7f6e490b
LibURL: Implement Host::public_suffix() and registrable_domain()
...
These algorithms are used in following commits.
2024-11-30 12:07:39 +01:00
Sam Atkins
63688148b9
LibURL: Promote Host to a proper class
...
This lets us move a few Host-related functions (like serialization and
checks for what the Host is) into Host instead of having them dotted
around the codebase.
For now, the interface is still very Variant-like, to avoid having to
change quite so much in one go.
2024-11-30 12:07:39 +01:00
Sam Atkins
90e763de4c
LibURL: Replace Host's Empty state with making Url's Host optional
...
A couple of reasons:
- Origin's Host (when in the tuple state) can't be null
- There's an "empty host" concept in the spec which is NOT the same as a
null Host, and that was confusing me.
2024-11-30 12:07:39 +01:00
Sam Atkins
8b984c0c57
LibURL: Clarify whether an Origin is opaque
...
Origins are immutable and we know on construction whether an Origin is
opaque. This also removes an implicit reliance on Host's Empty state.
2024-11-30 12:07:39 +01:00
Sam Atkins
3124dca528
LibURL+LibWebView: Move public suffix data to LibURL
2024-11-30 12:07:39 +01:00
Shannon Booth
8f6fe1de83
LibURL+LibWeb: Make URL serialization return a String
...
This can only ever fail from OOM, and will never by string containing
random byte sequences.
2024-11-23 16:43:55 +01:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00