mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +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
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