mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user