From a809d1634fa43172be87666f761954e40f2b3da8 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Tue, 4 Jul 2023 21:11:42 +1200 Subject: [PATCH] AK: Add missing spec assert in relative state basic URL parsing --- AK/URLParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AK/URLParser.cpp b/AK/URLParser.cpp index 5db78f295f2..8d3887323da 100644 --- a/AK/URLParser.cpp +++ b/AK/URLParser.cpp @@ -442,7 +442,8 @@ URL URLParser::parse(StringView raw_input, Optional 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;