mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWebView: Update the stored URL when WebContent's URL changes
This commit is contained in:
committed by
Alexander Kalenik
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
@@ -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