summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorTheFightingCatfish <seekingblues@gmail.com>2021-08-07 04:28:22 +0800
committerAndreas Kling <kling@serenityos.org>2021-08-08 00:33:14 +0200
commite80b887059a487f560e4c0408f1cf0c480461d9c (patch)
treeeff5a9afc1d583941d3e80436efdf9f52fb76b34 /Userland/Applications
parent4f5c69a04cd5362852b118820c2c75a8f2ba7265 (diff)
downloadserenity-e80b887059a487f560e4c0408f1cf0c480461d9c.zip
Browser+LibWeb: Make sure the default favicon is loaded
Previously in Browser, when we navigate back from a page that has an icon to a page that does not have an icon, the icon does not update and the old icon is displayed because FrameLoader does not set the default favicon when the favicon cannot be loaded. This patch ensures that Browser receives a new icon bitmap every time a load takes place.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Browser/BrowserWindow.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp
index 4f2f3e6d91..4aafd3aea3 100644
--- a/Userland/Applications/Browser/BrowserWindow.cpp
+++ b/Userland/Applications/Browser/BrowserWindow.cpp
@@ -515,10 +515,6 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
m_tab_widget->set_bar_visible(!is_fullscreen() && m_tab_widget->children().size() > 1);
- auto default_favicon = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/filetype-html.png");
- VERIFY(default_favicon);
- m_tab_widget->set_tab_icon(new_tab, default_favicon);
-
new_tab.on_title_change = [this, &new_tab](auto& title) {
m_tab_widget->set_tab_title(new_tab, title);
if (m_tab_widget->active_widget() == &new_tab)