mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWebView: Remove uneeded URL valdity check in CookieJar
The URL given will always be valid.
This commit is contained in:
parent
f48b760011
commit
8794bf568a
Notes:
github-actions[bot]
2025-04-19 11:19:50 +00:00
Author: https://github.com/shannonbooth
Commit: 8794bf568a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4401
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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<String> 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue