mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:54:57 +00:00
LibWeb: Don't choke when trying to render a document-less <iframe>
Just paint it like an empty box if there's no document in the frame.
This commit is contained in:
parent
a01478c858
commit
a93fb7299f
3 changed files with 15 additions and 1 deletions
|
@ -82,4 +82,9 @@ void HTMLIFrameElement::load_src(const String& value)
|
|||
m_hosted_frame->loader().load(url);
|
||||
}
|
||||
|
||||
const Document* HTMLIFrameElement::hosted_document() const
|
||||
{
|
||||
return m_hosted_frame ? m_hosted_frame->document() : nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue