1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Ladybird: Update stored URL when a page starts/finishes loading

Similar to 9782660. Unlike
Serenity's browser, this doesn't affect reloading the page, as Ladybird
refers to the History object for reloading (which is updated already on
page load). However, this URL is used for e.g. crash reporting, so let's
update it here as well.
This commit is contained in:
Timothy Flynn 2022-11-19 11:58:31 -05:00 committed by Andrew Kaster
parent 9a5f9c101c
commit 69cd0d6599

View file

@ -804,13 +804,13 @@ void WebContentView::notify_server_did_middle_click_link(Badge<WebContentClient>
void WebContentView::notify_server_did_start_loading(Badge<WebContentClient>, AK::URL const& url)
{
m_url = url;
emit load_started(url);
}
void WebContentView::notify_server_did_finish_loading(Badge<WebContentClient>, AK::URL const& url)
{
// FIXME
(void)url;
m_url = url;
}
void WebContentView::notify_server_did_request_navigate_back(Badge<WebContentClient>)