mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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:
parent
619794dfa7
commit
7969161f07
Notes:
sideshowbarker
2024-07-17 17:16:26 +09:00
Author: https://github.com/skyrising
Commit: 7969161f07
Pull-request: https://github.com/SerenityOS/serenity/pull/13075
Reviewed-by: https://github.com/linusg ✅
6 changed files with 57 additions and 0 deletions
|
@ -107,6 +107,9 @@ public:
|
|||
|
||||
RefPtr<DOM::Node> currently_focused_area();
|
||||
|
||||
String const& name() const { return m_name; }
|
||||
void set_name(String const& name) { m_name = name; }
|
||||
|
||||
private:
|
||||
explicit BrowsingContext(Page&, HTML::BrowsingContextContainer*);
|
||||
|
||||
|
@ -129,6 +132,7 @@ private:
|
|||
HashTable<ViewportClient*> m_viewport_clients;
|
||||
|
||||
HashMap<AK::URL, size_t> m_frame_nesting_levels;
|
||||
String m_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue