1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

LibWeb: Implement window.name

Right now the only functionality supported is getting/setting via JS
and resetting when browsing cross origin.

The HTML Specification (7.11 Browsing the web) also specifies how the
name should be restored from history entries, but we don't have those
yet.
This commit is contained in:
Simon Wanner 2022-03-16 17:15:11 +01:00 committed by Linus Groh
parent 619794dfa7
commit 7969161f07
6 changed files with 57 additions and 0 deletions

View file

@ -110,6 +110,9 @@ public:
DOM::ExceptionOr<void> post_message(JS::Value, String const& target_origin);
String name() const;
void set_name(String const&);
private:
explicit Window(DOM::Document&);