LibWeb: Update top_level_browsing_context() to use navigables

This commit is contained in:
Aliaksandr Kalenik
2023-09-04 15:33:08 +02:00
committed by Andreas Kling
parent fda420875d
commit 6942bdcfce
9 changed files with 43 additions and 30 deletions

View File

@@ -895,7 +895,7 @@ JS::GCPtr<WindowProxy const> Window::top() const
return {};
// 2. Return this's navigable's top-level traversable's active WindowProxy.
return browsing_context->top_level_browsing_context().window_proxy();
return browsing_context->top_level_browsing_context()->window_proxy();
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-parent