1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

LibWeb: Start fleshing out "apply the history step" for traversables

Implements https://html.spec.whatwg.org/multipage/browsing-the-web.html#apply-the-history-step
This commit is contained in:
Aliaksandr Kalenik 2023-04-13 10:23:59 +03:00 committed by Andreas Kling
parent caf7fd4f19
commit c90136d48d
3 changed files with 221 additions and 1 deletions

View file

@ -36,6 +36,8 @@ public:
};
HistoryObjectLengthAndIndex get_the_history_object_length_and_index(int) const;
void apply_the_history_step(int step, Optional<SourceSnapshotParams> = {});
int get_the_used_step(int step) const;
Vector<JS::Handle<Navigable>> get_all_navigables_whose_current_session_history_entry_will_change_or_reload(int) const;
Vector<int> get_all_used_history_steps() const;