1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

LibWeb: Implement synchronous session history steps

This commit is contained in:
Andrew Kaster 2023-11-03 19:18:18 -06:00 committed by Alexander Kalenik
parent d6d1485720
commit 4f088aff3d
4 changed files with 117 additions and 26 deletions

View file

@ -69,6 +69,11 @@ public:
m_session_history_traversal_queue.append(move(steps));
}
void append_session_history_synchronous_navigation_steps(JS::NonnullGCPtr<Navigable> target_navigable, JS::SafeFunction<void()> steps)
{
m_session_history_traversal_queue.append_sync(move(steps), target_navigable);
}
void process_session_history_traversal_queue()
{
m_session_history_traversal_queue.process();