1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +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:
Timothy Flynn 2021-03-26 10:41:25 -04:00 committed by Andreas Kling
parent ff0d4c6f7c
commit 557927f25b
7 changed files with 24 additions and 0 deletions

View file

@ -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());
}
}