Don't load cookie jar in app mode with config

Originally meant for app mode, this is wrong as default
behaviour since private mode would load all cookies.
This commit is contained in:
Christian Dywan 2010-10-24 20:08:32 +02:00
parent 6b77d140ea
commit 6cdc0261e9

View file

@ -1833,15 +1833,8 @@ main (int argc,
midori_startup_timer ("Browser: \t%f");
if (config)
{
SoupCookieJar* jar;
settings = settings_and_accels_new (config, &extensions);
g_strfreev (extensions);
config_file = g_build_filename (config, "cookies.txt", NULL);
jar = soup_cookie_jar_text_new (config_file, TRUE);
g_free (config_file);
soup_session_add_feature (session, SOUP_SESSION_FEATURE (jar));
g_object_unref (jar);
search_engines = search_engines_new_from_folder (config, NULL);
g_object_set (browser, "search-engines", search_engines, NULL);
g_object_unref (search_engines);