From 69cd0d6599581e73a1c0a9121140536cfc0b6712 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 19 Nov 2022 11:58:31 -0500 Subject: [PATCH] Ladybird: Update stored URL when a page starts/finishes loading Similar to https://github.com/SerenityOS/serenity/commit/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. --- Ladybird/WebContentView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 6a31bd9a12..1af4d2901e 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -804,13 +804,13 @@ void WebContentView::notify_server_did_middle_click_link(Badge void WebContentView::notify_server_did_start_loading(Badge, AK::URL const& url) { + m_url = url; emit load_started(url); } void WebContentView::notify_server_did_finish_loading(Badge, AK::URL const& url) { - // FIXME - (void)url; + m_url = url; } void WebContentView::notify_server_did_request_navigate_back(Badge)