mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
Currently we create URLs such as 'about:blank' through the StringView or ByteString constructor of URL. However, in order to elimate the use of URL::is_valid, we need to get rid of these constructors as it makes it way too easy to create an invalid URL. It is very cumbersome to construct an 'about:blank' URL when using URL::Parser::basic_parse. So instead of doing that, create some helper functions which will create the 'about:XXX' URLs with the correct properties set. Conveniently, this is also a much faster way of creating these URLs as it means we do not need to parse the URL and can set all of the members up front.
8.4 KiB
8.4 KiB