1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibWeb: Add missing property and methods for history object

We provide `length` property and `go` / `back` / `forward` methods
implementation here.
This commit is contained in:
leeight 2022-10-13 22:43:04 +08:00 committed by Linus Groh
parent 2b9cf5a7b4
commit 2029c98fa7
4 changed files with 73 additions and 1 deletions

View file

@ -126,6 +126,7 @@ public:
Vector<SessionHistoryEntry>& session_history() { return m_session_history; }
Vector<SessionHistoryEntry> const& session_history() const { return m_session_history; }
size_t session_history_index() const { return *m_session_history_index; }
// https://html.spec.whatwg.org/multipage/dom.html#still-on-its-initial-about:blank-document
bool still_on_its_initial_about_blank_document() const;