diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-03-26 10:41:25 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-26 16:55:51 +0100 |
commit | 557927f25b9d0b9b3f5e4596b4640524050b9ca7 (patch) | |
tree | b8f55f8196dd3a8bbad5cc189aff17361e5a7cb1 /Userland/Libraries/LibWeb/WebContentClient.cpp | |
parent | ff0d4c6f7c5ab4f9adbf5ba1c8f0ba24221b5b62 (diff) | |
download | serenity-557927f25b9d0b9b3f5e4596b4640524050b9ca7.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/WebContentClient.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp index 9dfbfc9702..f049f21cb2 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.cpp +++ b/Userland/Libraries/LibWeb/WebContentClient.cpp @@ -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()); +} + } |