mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibWeb/HTML: Update navigation API when a same-document reload occurs
Corresponds to 3a2a05ddf8
This commit is contained in:
parent
d54753e9c6
commit
54d41cfea3
Notes:
github-actions[bot]
2025-02-22 15:00:51 +00:00
Author: https://github.com/AtkinsSJ
Commit: 54d41cfea3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3647
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 8 additions and 1 deletions
|
@ -1126,7 +1126,14 @@ bool Navigation::inner_navigate_event_firing_algorithm(
|
|||
auto history_handling = navigation_type == Bindings::NavigationType::Push ? HistoryHandlingBehavior::Push : HistoryHandlingBehavior::Replace;
|
||||
perform_url_and_history_update_steps(document, event->destination()->raw_url(), event->classic_history_api_state(), history_handling);
|
||||
}
|
||||
// Big spec note about reload here
|
||||
|
||||
// 8. Otherwise, if navigationType is "reload", then update the navigation API entries for a same-document navigation
|
||||
// given navigation, navigable's active session history entry, and "reload".
|
||||
// NOTE: If navigationType is "traverse", then this event firing is happening as part of the traversal process, and
|
||||
// that process will take care of performing the appropriate session history entry updates.
|
||||
if (navigation_type == Bindings::NavigationType::Reload) {
|
||||
update_the_navigation_api_entries_for_a_same_document_navigation(*navigable->active_session_history_entry(), Bindings::NavigationType::Reload);
|
||||
}
|
||||
}
|
||||
|
||||
// 34. If endResultIsSameDocument is true:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue