LibWebView: Update the stored URL when WebContent's URL changes

This commit is contained in:
Timothy Flynn 2024-04-14 16:59:59 -04:00 committed by Alexander Kalenik
parent 7c54b15d6d
commit 8e2b1a8a1d
Notes: sideshowbarker 2024-07-18 00:54:03 +09:00

View file

@ -145,6 +145,8 @@ void WebContentClient::did_change_title(u64 page_id, ByteString const& title)
void WebContentClient::did_change_url(u64 page_id, URL::URL const& url)
{
if (auto view = view_for_page_id(page_id); view.has_value()) {
view->set_url({}, url);
if (view->on_url_change)
view->on_url_change(url);
}