summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/Tab.cpp
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2022-01-31 20:43:18 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-18 19:00:42 +0100
commit5d8cda59aece84f85d12ef282c9142c2284a6c4c (patch)
treec9b732e19508279e3df484c102b8abc40cc5b253 /Userland/Applications/Browser/Tab.cpp
parent257518424263b12a959f2196f3efef6300aa53cb (diff)
downloadserenity-5d8cda59aece84f85d12ef282c9142c2284a6c4c.zip
Browser: Update content filters if the config file changes
Diffstat (limited to 'Userland/Applications/Browser/Tab.cpp')
-rw-r--r--Userland/Applications/Browser/Tab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp
index 06ec6ab64f..b31120fec6 100644
--- a/Userland/Applications/Browser/Tab.cpp
+++ b/Userland/Applications/Browser/Tab.cpp
@@ -442,6 +442,11 @@ void Tab::context_menu_requested(const Gfx::IntPoint& screen_position)
m_tab_context_menu->popup(screen_position);
}
+void Tab::content_filters_changed()
+{
+ m_web_content_view->set_content_filters(g_content_filters);
+}
+
GUI::AbstractScrollableWidget& Tab::view()
{
return *m_web_content_view;