mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibWeb: Align session history step application code with latest spec
Replaces direct "apply the history step" calls with new functions from the spec: - "update for navigable creation/destruction" - "apply the push/replace history step" - "apply the reload history step"
This commit is contained in:
parent
d3d2e56a68
commit
2445205e9d
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 2445205e9d
Pull-request: https://github.com/SerenityOS/serenity/pull/21093
4 changed files with 39 additions and 15 deletions
|
@ -126,7 +126,8 @@ WebIDL::ExceptionOr<void> NavigableContainer::create_new_child_navigable()
|
|||
// 5. Append nestedHistory to parentDocState's nested histories.
|
||||
parent_doc_state->nested_histories().append(move(nested_history));
|
||||
|
||||
// FIXME: 6. Update for navigable creation/destruction given traversable
|
||||
// 6. Update for navigable creation/destruction given traversable
|
||||
traversable->update_for_navigable_creation_or_destruction();
|
||||
});
|
||||
|
||||
return {};
|
||||
|
@ -336,7 +337,7 @@ void NavigableContainer::destroy_the_child_navigable()
|
|||
// 8. Append the following session history traversal steps to traversable:
|
||||
traversable->append_session_history_traversal_steps([traversable] {
|
||||
// 1. Apply pending history changes to traversable.
|
||||
traversable->apply_pending_history_changes();
|
||||
traversable->update_for_navigable_creation_or_destruction();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue