From 3b7a5d941d73e5213999f3a3353e65c69ae02fb5 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 19 Apr 2025 17:06:23 +1200 Subject: [PATCH] LibWebView: Remove uneeded URL valdity check in CookieJar The URL given will always be valid. --- Libraries/LibWebView/CookieJar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWebView/CookieJar.cpp b/Libraries/LibWebView/CookieJar.cpp index 0ec4bbcdeaf..5569ad81dfb 100644 --- a/Libraries/LibWebView/CookieJar.cpp +++ b/Libraries/LibWebView/CookieJar.cpp @@ -225,7 +225,7 @@ void CookieJar::expire_cookies_with_time_offset(AK::Duration offset) // https://www.ietf.org/archive/id/draft-ietf-httpbis-rfc6265bis-15.html#section-5.1.2 Optional CookieJar::canonicalize_domain(const URL::URL& url) { - if (!url.is_valid() || !url.host().has_value()) + if (!url.host().has_value()) return {}; // 1. Convert the host name to a sequence of individual domain name labels.