mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Implement (naive) version of HTMLIFrameElement.contentWindow
This should really return the WindowProxy, but since we don't have the infrastructure set up just yet, just return the window object itself for now.
This commit is contained in:
parent
8909ef5b90
commit
2801ddfa76
Notes:
sideshowbarker
2024-07-17 08:25:33 +09:00
Author: https://github.com/awesomekling
Commit: 2801ddfa76
3 changed files with 14 additions and 0 deletions
|
@ -103,4 +103,13 @@ const DOM::Document* BrowsingContextContainer::get_svg_document() const
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
HTML::Window* BrowsingContextContainer::content_window() const
|
||||
{
|
||||
// FIXME: This should return the WindowProxy
|
||||
auto* document = content_document();
|
||||
if (!document)
|
||||
return nullptr;
|
||||
return const_cast<HTML::Window*>(&document->window());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue