LibWeb: Call set_ongoing_navigation()
on navigable instead of this
This fixes incorrectly implemented spec when `set_ongoing_navigation()` is called on `this` (=traversable) instead of `navigable` variable.
This commit is contained in:
parent
799b465fac
commit
d3d2e56a68
Notes:
sideshowbarker
2024-07-16 22:18:54 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/d3d2e56a68 Pull-request: https://github.com/SerenityOS/serenity/pull/21093
1 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ void TraversableNavigable::apply_the_history_step(int step, Optional<SourceSnaps
|
|||
navigable->set_current_session_history_entry(target_entry);
|
||||
|
||||
// 3. Set navigable's ongoing navigation to "traversal".
|
||||
set_ongoing_navigation(Traversal::Tag);
|
||||
navigable->set_ongoing_navigation(Traversal::Tag);
|
||||
}
|
||||
|
||||
// 9. Let totalChangeJobs be the size of changingNavigables.
|
||||
|
@ -390,7 +390,7 @@ void TraversableNavigable::apply_the_history_step(int step, Optional<SourceSnaps
|
|||
auto navigable = changing_navigable_continuation.navigable;
|
||||
|
||||
// 7. Set navigable's ongoing navigation to null.
|
||||
set_ongoing_navigation({});
|
||||
navigable->set_ongoing_navigation({});
|
||||
|
||||
// 8. Let (scriptHistoryLength, scriptHistoryIndex) be the result of getting the history object length and index given traversable and targetStep.
|
||||
auto [script_history_length, script_history_index] = get_the_history_object_length_and_index(target_step);
|
||||
|
|
Loading…
Add table
Reference in a new issue