LibWeb: Implement "get session history entries" for navigables

https://html.spec.whatwg.org/multipage/browsing-the-web.html#getting-session-history-entries
This commit is contained in:
Aliaksandr Kalenik 2023-04-06 18:08:44 +03:00 committed by Andreas Kling
commit d9d8896380
Notes: sideshowbarker 2024-07-18 03:35:30 +09:00
2 changed files with 40 additions and 0 deletions

View file

@ -35,6 +35,8 @@ public:
JS::GCPtr<SessionHistoryEntry> active_session_history_entry() const { return m_active_session_history_entry; };
JS::GCPtr<SessionHistoryEntry> current_session_history_entry() const { return m_current_session_history_entry; };
Vector<JS::NonnullGCPtr<SessionHistoryEntry>>& get_session_history_entries() const;
JS::GCPtr<DOM::Document> active_document();
JS::GCPtr<BrowsingContext> active_browsing_context();
JS::GCPtr<WindowProxy> active_window_proxy();