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
Notes: sideshowbarker 2024-07-17 11:30:05 +09:00

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;