mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWebView: Update the stored URL when WebContent's URL changes
This commit is contained in:
parent
7c54b15d6d
commit
8e2b1a8a1d
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/8e2b1a8a1d Pull-request: https://github.com/SerenityOS/serenity/pull/23965 Issue: https://github.com/SerenityOS/serenity/issues/23961
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue