1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 22:14:55 +00:00

AK: Add missing spec assert in relative state basic URL parsing

This commit is contained in:
Shannon Booth 2023-07-04 21:11:42 +12:00 committed by Andreas Kling
parent 4dd4ff68d3
commit a809d1634f

View File

@ -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: bases scheme is not "file".
// 1. Assert: bases scheme is not "file".
VERIFY(base_url->scheme() != "file");
// 2. Set urls scheme to bases scheme.
url->m_scheme = base_url->m_scheme;