mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +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:
parent
3c548adf9c
commit
24510b0845
Notes:
sideshowbarker
2024-07-17 05:18:00 +09:00
Author: https://github.com/awesomekling
Commit: 24510b0845
Pull-request: https://github.com/SerenityOS/serenity/pull/15672
2 changed files with 13 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue