LibWeb+LibWebView+WebContent: Add a new IPC for modifying history state

Let's not re-invoke the "page did start loading" IPC when the history
state is pushed/replaced. It's a bit misleading (the change does not
actually load the new URL), but also the chromes may do more work than
we want when we change the URL.

Instead, add a new IPC for the history object to invoke.
This commit is contained in:
Timothy Flynn 2024-03-28 22:12:23 -04:00 committed by Tim Flynn
commit 8b1ad5c496
Notes: sideshowbarker 2024-07-16 23:57:20 +09:00
9 changed files with 31 additions and 3 deletions

View file

@ -209,7 +209,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_start_loading(new_url, false);
navigable->active_browsing_context()->page().client().page_did_update_url(new_url, history_handling);
}
// 10. Run the URL and history update steps given document and newURL, with serializedData set to