mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:18:11 +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:
parent
9793d69d4f
commit
e2391105a1
4 changed files with 20 additions and 3 deletions
|
@ -214,9 +214,6 @@ Optional<AK::URL> NavigableContainer::shared_attribute_processing_steps_for_ifra
|
|||
// 4. If url matches about:blank and initialInsertion is true, then perform the URL and history update steps given element's content navigable's active document and url.
|
||||
if (url_matches_about_blank(url) && initial_insertion) {
|
||||
perform_url_and_history_update_steps(*m_content_navigable->active_document(), url);
|
||||
// NOTE: Not in the spec but we need to make sure that "apply the history step" for initial navigation to about:blank
|
||||
// is applied before subsequent navigation.
|
||||
navigable()->traversable_navigable()->process_session_history_traversal_queue();
|
||||
}
|
||||
|
||||
// 5. Return url.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue