mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 12:49:05 +00:00
LibWeb: Fix out of order spec step numbers in "create child navigable"
No behaviour change.
This commit is contained in:
parent
18520561e7
commit
2c86633c51
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 2c86633c51
Pull-request: https://github.com/SerenityOS/serenity/pull/23870
1 changed files with 2 additions and 3 deletions
|
@ -112,7 +112,6 @@ WebIDL::ExceptionOr<void> NavigableContainer::create_new_child_navigable(JS::Saf
|
|||
// 12. Append the following session history traversal steps to traversable:
|
||||
traversable->append_session_history_traversal_steps([traversable, navigable, parent_navigable, history_entry, afterSessionHistoryUpdate = move(afterSessionHistoryUpdate)] {
|
||||
// 1. Let parentDocState be parentNavigable's active session history entry's document state.
|
||||
|
||||
auto parent_doc_state = parent_navigable->active_session_history_entry()->document_state();
|
||||
|
||||
// 2. Let parentNavigableEntries be the result of getting session history entries for parentNavigable.
|
||||
|
@ -132,10 +131,10 @@ WebIDL::ExceptionOr<void> NavigableContainer::create_new_child_navigable(JS::Saf
|
|||
.entries { *history_entry },
|
||||
};
|
||||
|
||||
// 5. Append nestedHistory to parentDocState's nested histories.
|
||||
// 6. Append nestedHistory to parentDocState's nested histories.
|
||||
parent_doc_state->nested_histories().append(move(nested_history));
|
||||
|
||||
// 6. Update for navigable creation/destruction given traversable
|
||||
// 7. Update for navigable creation/destruction given traversable
|
||||
traversable->update_for_navigable_creation_or_destruction();
|
||||
|
||||
if (afterSessionHistoryUpdate) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue