mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +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
|
@ -0,0 +1 @@
|
|||
test done!
|
|
@ -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