diff options
author | Anthony Van de Gejuchte <anthonyvdg@yahoo.com> | 2022-04-03 19:56:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-10 12:10:59 +0200 |
commit | 69ca27d3d7868ca2e19153b636455e2e8fbfada1 (patch) | |
tree | 5ad8b820c927c029d1a3495b789a9a641e9b4bde /Userland/Libraries/LibWeb/DOM | |
parent | 06d9853a8b172f0fd452040299f5c6db9436f928 (diff) | |
download | serenity-69ca27d3d7868ca2e19153b636455e2e8fbfada1.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index d64ca68435..846926b593 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -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: |