LibWeb: Rename did_update_url() to did_history_api_push_or_replace()

The previous name was extremely misleading, because the call is used for
pushing or replacing new session history entry on chrome side instead of
only changing URL.
This commit is contained in:
Aliaksandr Kalenik 2024-04-13 23:25:10 +02:00 committed by Alexander Kalenik
commit a8cf1aca7c
Notes: sideshowbarker 2024-07-17 11:30:05 +09:00
11 changed files with 14 additions and 14 deletions

View file

@ -215,7 +215,7 @@ WebIDL::ExceptionOr<void> History::shared_history_push_replace_state(JS::Value d
auto navigable = document->navigable();
if (navigable->is_top_level_traversable()) {
navigable->active_browsing_context()->page().client().page_did_update_url(new_url, history_handling);
navigable->active_browsing_context()->page().client().page_did_history_api_push_or_replace(new_url, history_handling);
}
// 10. Run the URL and history update steps given document and newURL, with serializedData set to