mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibWeb: Don't try to load anything if src is empty in <img>
Previously we tried to load "" if the src was present but empty and essentially only waited for RequestServer to time out.
This commit is contained in:
parent
708f835477
commit
9a1ac662f1
Notes:
sideshowbarker
2024-07-18 17:27:50 +09:00
Author: https://github.com/TobyAsE
Commit: 9a1ac662f1
Pull-request: https://github.com/SerenityOS/serenity/pull/7451
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ void HTMLImageElement::parse_attribute(const FlyString& name, const String& valu
|
||||||
{
|
{
|
||||||
HTMLElement::parse_attribute(name, value);
|
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));
|
m_image_loader.load(document().complete_url(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue