diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-11-14 19:25:31 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-11-14 20:10:58 -0600 |
commit | 6e9137f7a96e316719b39b2ed9096a8a9c9eeeed (patch) | |
tree | 6affb3e28571aa09238003c5af42c5a82011df2a /embed/ephy-embed-shell.c | |
parent | 79e042c5f9c4bd51ff2662b892bfc7d57ab0611d (diff) | |
download | epiphany-6e9137f7a96e316719b39b2ed9096a8a9c9eeeed.tar.gz |
Use EphyDownload to download adblock filters
Instead of using gvfs. This means that the adblocker now works even if
gvfsd-http is not running. In particular, it should now (hopefully) work
under Flatpak.
https://bugzilla.gnome.org/show_bug.cgi?id=776682
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r-- | embed/ephy-embed-shell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 9f45841c0..443eb7a30 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -985,10 +985,6 @@ ephy_embed_shell_startup (GApplication *application) G_APPLICATION_CLASS (ephy_embed_shell_parent_class)->startup (application); - filters_dir = adblock_filters_dir (shell); - priv->filters_manager = ephy_filters_manager_new (filters_dir); - g_free (filters_dir); - ephy_embed_shell_create_web_context (shell); ephy_embed_shell_setup_web_extensions_server (shell); @@ -1090,6 +1086,10 @@ ephy_embed_shell_startup (GApplication *application) ephy_embed_prefs_set_cookie_accept_policy (cookie_manager, cookie_policy); g_free (cookie_policy); + filters_dir = adblock_filters_dir (shell); + priv->filters_manager = ephy_filters_manager_new (filters_dir); + g_free (filters_dir); + #if ENABLE_HTTPS_EVERYWHERE /* We might want to be smarter about this in the future. For now, * trigger an update of the rulesets once each time Epiphany is started. |