1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

LibWeb: Call process_session_history_traversal_queue on history update

Spec declares that the updates to history should be synchronous on
initial page load and on history pushState/replaceState.
This commit is contained in:
Vladimir Shakhov 2023-12-14 11:38:45 +01:00 committed by Alexander Kalenik
parent 9793d69d4f
commit e2391105a1
4 changed files with 20 additions and 3 deletions

View file

@ -1877,6 +1877,9 @@ void perform_url_and_history_update_steps(DOM::Document& document, AK::URL new_u
// 1. Finalize a same-document navigation given traversable, navigable, newEntry, and entryToReplace.
finalize_a_same_document_navigation(*traversable, *navigable, new_entry, entry_to_replace);
});
// FIXME: Implement synchronous session history steps.
traversable->process_session_history_traversal_queue();
}
void Navigable::scroll_offset_did_change()