mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Update Window::parent() to use navigables
This commit is contained in:
committed by
Andreas Kling
parent
8d82dc3a9f
commit
e54071ce89
@@ -902,7 +902,7 @@ JS::GCPtr<WindowProxy const> Window::top() const
|
||||
JS::GCPtr<WindowProxy const> Window::parent() const
|
||||
{
|
||||
// 1. Let navigable be this's navigable.
|
||||
auto* navigable = browsing_context();
|
||||
auto navigable = this->navigable();
|
||||
|
||||
// 2. If navigable is null, then return null.
|
||||
if (!navigable)
|
||||
@@ -913,7 +913,7 @@ JS::GCPtr<WindowProxy const> Window::parent() const
|
||||
navigable = parent;
|
||||
|
||||
// 4. Return navigable's active WindowProxy.
|
||||
return navigable->window_proxy();
|
||||
return navigable->active_window_proxy();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-frameelement
|
||||
|
||||
Reference in New Issue
Block a user