mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:45:08 +00:00
LibWeb: Don't load anything for <iframe> without src attribute
Completing an empty URL string from the document base URL will just return the document URL, so any document that had an "<iframe>" would endlessly load itself in recursive iframes.
This commit is contained in:
parent
c1a0ad764a
commit
5e945c5169
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ void HTMLIFrameElement::load_src(const String& value)
|
|||
if (!m_content_frame)
|
||||
return;
|
||||
|
||||
if (value.is_null())
|
||||
return;
|
||||
|
||||
auto url = document().complete_url(value);
|
||||
if (!url.is_valid()) {
|
||||
dbgln("iframe failed to load URL: Invalid URL: {}", value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue