From 9a1ac662f19fe4163e13881407e05a64fd4aed8f Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Mon, 24 May 2021 17:53:38 +0200 Subject: [PATCH] LibWeb: Don't try to load anything if src is empty in Previously we tried to load "" if the src was present but empty and essentially only waited for RequestServer to time out. --- Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp index 75cf9b4586..d17b0c63cf 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -60,7 +60,7 @@ void HTMLImageElement::parse_attribute(const FlyString& name, const String& valu { HTMLElement::parse_attribute(name, value); - if (name == HTML::AttributeNames::src) + if (name == HTML::AttributeNames::src && !value.is_empty()) m_image_loader.load(document().complete_url(value)); }