1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:37:35 +00:00

LibWeb: Make window.parent and window.top return WindowProxy

These functions were previously ad-hoc and returned the active
document's window. They now correctly teturn the browsing context's
WindowProxy instead.
This commit is contained in:
Andreas Kling 2022-10-15 23:12:05 +02:00
parent 3c548adf9c
commit 24510b0845
2 changed files with 13 additions and 13 deletions

View file

@ -105,7 +105,8 @@ public:
JS::NonnullGCPtr<HTML::Storage> local_storage();
JS::NonnullGCPtr<HTML::Storage> session_storage();
Window* parent();
// https://html.spec.whatwg.org/multipage/browsers.html#dom-parent
WindowProxy* parent();
WebIDL::ExceptionOr<void> post_message_impl(JS::Value, String const& target_origin);