mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Add missing spec assert in relative state basic URL parsing
This commit is contained in:
parent
4dd4ff68d3
commit
a809d1634f
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/a809d1634f Pull-request: https://github.com/SerenityOS/serenity/pull/19787
1 changed files with 2 additions and 1 deletions
|
@ -442,7 +442,8 @@ URL URLParser::parse(StringView raw_input, Optional<URL> const& base_url, Option
|
|||
break;
|
||||
// -> relative state, https://url.spec.whatwg.org/#relative-state
|
||||
case State::Relative:
|
||||
// FIXME: 1. Assert: base’s scheme is not "file".
|
||||
// 1. Assert: base’s scheme is not "file".
|
||||
VERIFY(base_url->scheme() != "file");
|
||||
|
||||
// 2. Set url’s scheme to base’s scheme.
|
||||
url->m_scheme = base_url->m_scheme;
|
||||
|
|
Loading…
Reference in a new issue