aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/e-shell.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index ee30d5c8d5..30ab0294df 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -788,6 +788,7 @@ shell_initable_init (GInitable *initable,
GApplication *application = G_APPLICATION (initable);
EShell *shell = E_SHELL (initable);
ESourceRegistry *registry;
+ ESource *proxy_source;
gulong handler_id;
shell_add_actions (application);
@@ -807,6 +808,17 @@ shell_initable_init (GInitable *initable,
G_CALLBACK (shell_backend_died_cb), shell);
shell->priv->backend_died_handler_id = handler_id;
+ /* Configure WebKit's default SoupSession. */
+
+ proxy_source = e_source_registry_ref_builtin_proxy (registry);
+
+ g_object_set (
+ webkit_get_default_session (),
+ SOUP_SESSION_PROXY_RESOLVER,
+ G_PROXY_RESOLVER (proxy_source),
+ NULL);
+
+ g_object_unref (proxy_source);
g_object_unref (registry);
return TRUE;