1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

LibWeb: Show correct favicon when default favicon is loaded

Block the replacement of the favicon by the default favicon loader
when a favicon that is loaded through a link tag is already active.

This way, the favicon in the link tags will be prioritized against
the default favicons from `/favicon.ico` or the seranity default icon.
This commit is contained in:
Anthony Van de Gejuchte 2022-04-03 19:56:15 +02:00 committed by Andreas Kling
parent 06d9853a8b
commit 69ca27d3d7
2 changed files with 14 additions and 0 deletions

View file

@ -339,6 +339,7 @@ public:
bool in_removed_last_ref() const { return m_in_removed_last_ref; }
bool has_active_favicon() const { return m_active_favicon; }
void check_favicon_after_loading_link_resource();
private: