mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-26 19:28:59 +00:00
LibWeb: Implement window.top
This simply returns the main frame's window object. If accessed inside the main frame, it will return itself.
This commit is contained in:
parent
779f0c6e91
commit
2f9321a0d4
Notes:
sideshowbarker
2024-07-18 20:39:55 +09:00
Author: https://github.com/awesomekling
Commit: 2f9321a0d4
2 changed files with 16 additions and 0 deletions
|
@ -78,6 +78,8 @@ public:
|
|||
private:
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
JS_DECLARE_NATIVE_GETTER(top_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_GETTER(document_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_GETTER(performance_getter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue