mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibWeb+WebContent: Support displaying favicons in OOPWV
In single process mode, the browser will display a page's favicon in both the location bar and tab. This adds the same support for multi- process mode.
This commit is contained in:
parent
ff0d4c6f7c
commit
557927f25b
Notes:
sideshowbarker
2024-07-18 21:04:16 +09:00
Author: https://github.com/trflynn89 🔰
Commit: 557927f25b
Pull-request: https://github.com/SerenityOS/serenity/pull/5958
7 changed files with 24 additions and 0 deletions
|
@ -173,4 +173,13 @@ OwnPtr<Messages::WebContentClient::DidRequestPromptResponse> WebContentClient::h
|
|||
return make<Messages::WebContentClient::DidRequestPromptResponse>(result);
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidChangeFavicon& message)
|
||||
{
|
||||
if (!message.favicon().is_valid()) {
|
||||
dbgln("DidChangeFavicon: Received invalid favicon");
|
||||
return;
|
||||
}
|
||||
m_view.notify_server_did_change_favicon(*message.favicon().bitmap());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue