LibWeb: Pass SynchronousNavigation flag into "apply the history step"

Workaround spec bug by explicitly carrying information whether
navigation is sync (History api, fragment change) or not.

See for more details https://github.com/whatwg/html/issues/10232
This commit is contained in:
Aliaksandr Kalenik 2024-04-05 16:02:52 +02:00 committed by Alexander Kalenik
parent 93ba99f14a
commit adcc3905e5
Notes: sideshowbarker 2024-07-17 06:38:11 +09:00
3 changed files with 17 additions and 11 deletions

View file

@ -1866,7 +1866,7 @@ void finalize_a_cross_document_navigation(JS::NonnullGCPtr<Navigable> navigable,
}
// 10. Apply the push/replace history step targetStep to traversable.
traversable->apply_the_push_or_replace_history_step(target_step, history_handling);
traversable->apply_the_push_or_replace_history_step(target_step, history_handling, TraversableNavigable::SynchronousNavigation::No);
}
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#url-and-history-update-steps