From e9670862a03f48da2f6a1af87315e26dfa0407a3 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Mon, 11 Sep 2023 22:06:41 +1200 Subject: [PATCH] AK: Simplify "cannot have a username/password/port" This is an editorial change in the URL spec, see: https://github.com/whatwg/url/commit/f78785 --- AK/URL.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AK/URL.cpp b/AK/URL.cpp index 9d90a5d3f2..eba827a81d 100644 --- a/AK/URL.cpp +++ b/AK/URL.cpp @@ -126,8 +126,7 @@ void URL::append_path(StringView path) bool URL::cannot_have_a_username_or_password_or_port() const { // A URL cannot have a username/password/port if its host is null or the empty string, or its scheme is "file". - // FIXME: The spec does not mention anything to do with 'cannot be a base URL'. - return m_host.has() || m_host == String {} || m_cannot_be_a_base_url || m_scheme == "file"sv; + return m_host.has() || m_host == String {} || m_scheme == "file"sv; } // FIXME: This is by no means complete.