1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibWeb: Try fetching a favicon when loading a non-file URL in HtmlView

If valid and decodable, the favicon will be provided to clients via the
on_favicon_change hook. :^)
This commit is contained in:
Andreas Kling 2020-04-24 22:26:53 +02:00
parent 3fcfab4404
commit 2be184f49c
2 changed files with 25 additions and 0 deletions

View file

@ -61,6 +61,7 @@ public:
Function<void(const String&)> on_link_hover;
Function<void(const String&)> on_title_change;
Function<void(const URL&)> on_load_start;
Function<void(const Gfx::Bitmap&)> on_favicon_change;
virtual bool accepts_focus() const override { return true; }