mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 23:42:17 +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
Notes:
sideshowbarker
2024-07-16 23:55:09 +09:00
Author: https://github.com/bogdad 🔰
Commit: e2391105a1
Pull-request: https://github.com/SerenityOS/serenity/pull/22285
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/kalenikaliaksandr ✅
4 changed files with 20 additions and 3 deletions
|
@ -0,0 +1,16 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
|
||||
history.replaceState({}, "hello", "history-replace-push-state-race.html");
|
||||
history.replaceState({}, "hello", "history-replace-push-state-race.html");
|
||||
|
||||
// this test checks a regression for a crash in `finalize_a_same_document_navigation`
|
||||
// when `target_navigable->get_session_history_entries()` does not contain `entry_to_replace` exactly.
|
||||
//
|
||||
// history.replaceState is one possible trigger for the crash.
|
||||
|
||||
println("test done!");
|
||||
done();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue