summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embed/ephy-filters-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/ephy-filters-manager.c b/embed/ephy-filters-manager.c
index 32c00ed0b..0ca319e6f 100644
--- a/embed/ephy-filters-manager.c
+++ b/embed/ephy-filters-manager.c
@@ -950,6 +950,10 @@ ephy_filters_manager_constructed (GObject *object)
G_OBJECT_CLASS (ephy_filters_manager_parent_class)->constructed (object);
+ /* Disable filter manager during tests */
+ if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) == EPHY_EMBED_SHELL_MODE_TEST)
+ return;
+
if (!manager->filters_dir) {
g_autofree char *cache_dir = ephy_default_cache_dir ();
manager->filters_dir = g_build_filename (cache_dir, "adblock", NULL);