diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-11-23 15:17:45 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-11-23 15:19:47 -0600 |
commit | edee9612e99442a830327279c014dc4332fa0d4d (patch) | |
tree | 661e6a37e625676c275069321ddeea69dd3cb921 /embed | |
parent | c492aafef0e7db3b0ce00747de0bea81a7b119c4 (diff) | |
download | epiphany-edee9612e99442a830327279c014dc4332fa0d4d.tar.gz |
prefs-dialog: Do not use embed web context for sync webview
Turns out this is crazy, it results in the Ephy web extension running in
the web process. Instead, stick with the default web context and just
set Accept-Lang headers on that as well, so we don't lose localization
of the login page. We can still safely get user agent etc. via the
shared settings object.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-prefs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index c5701e914..d59420ada 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -369,6 +369,10 @@ webkit_pref_callback_accept_languages (GSettings *settings, webkit_web_context_set_preferred_languages (web_context, (const char * const *)(void *)array->data); + /* Set preferred languages also for the default web context, used by the sync + * tab in the preferences dialog. It doesn't need spellchecking. */ + webkit_web_context_set_preferred_languages (webkit_web_context_get_default (), (const char * const *)(void *)array->data); + if (g_settings_get_boolean (EPHY_SETTINGS_WEB, EPHY_PREFS_WEB_ENABLE_SPELL_CHECKING)) { char **normalized = normalize_languages ((char **)(void *)array->data); webkit_web_context_set_spell_checking_languages (web_context, (const char * const *)normalized); |