1
Fork 0
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:
Andreas Kling 2021-04-07 11:19:51 +02:00
parent 779f0c6e91
commit 2f9321a0d4
2 changed files with 16 additions and 0 deletions

View file

@ -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);