mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibWebView: Update the stored URL when WebContent's URL changes
This commit is contained in:
committed by
Alexander Kalenik
parent
7c54b15d6d
commit
8e2b1a8a1d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user