From 2edc02176220d96d6386c500afaf4a680dc3a3b9 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 5 Feb 2006 22:42:45 +0000 Subject: Changes to support xulrunner trunk (gecko 1.9). 2006-02-05 Christian Persch * m4/gecko.m4: * configure.ac: * embed/mozilla/Makefile.am: Changes to support xulrunner trunk (gecko 1.9). * embed/mozilla/mozilla-embed-single.cpp: Go back to continuing after failed GetPassword; fixes getting the password list in case one item is corrupted. --- embed/mozilla/Makefile.am | 1 + embed/mozilla/mozilla-embed-single.cpp | 30 ++++++++++-------------------- 2 files changed, 11 insertions(+), 20 deletions(-) (limited to 'embed') diff --git a/embed/mozilla/Makefile.am b/embed/mozilla/Makefile.am index 3b118e01d..5658c8571 100644 --- a/embed/mozilla/Makefile.am +++ b/embed/mozilla/Makefile.am @@ -104,6 +104,7 @@ mozilla_include_subdirs = \ fastfind \ helperAppDlg \ gfx \ + gtkembedmoz \ history \ js \ layout \ diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 23805315a..bdbe73c38 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -446,21 +446,15 @@ mozilla_init_single (MozillaEmbedSingle *mes) mes); } -static void -mozilla_init_home (void) -{ - char *mozilla_five_home; - mozilla_five_home = g_strdup (g_getenv ("MOZILLA_FIVE_HOME")); - gtk_moz_embed_set_comp_path (mozilla_five_home); - g_free (mozilla_five_home); -} - void mozilla_init_profile (void) { char *profile_path; profile_path = g_build_filename (ephy_dot_dir (), - MOZILLA_PROFILE_DIR, + MOZILLA_PROFILE_DIR, +#ifdef HAVE_GECKO_1_9 + "epiphany", +#endif NULL); gtk_moz_embed_set_profile_path (profile_path, MOZILLA_PROFILE_NAME); g_free (profile_path); @@ -729,12 +723,16 @@ impl_init (EphyEmbedSingle *esingle) /* Pre initialization */ mozilla_init_plugin_path (); - mozilla_init_home (); + mozilla_init_profile (); /* Set mozilla binary path */ gtk_moz_embed_set_comp_path (MOZILLA_HOME); +#ifdef HAVE_GECKO_1_9 + gtk_moz_embed_set_path (MOZILLA_HOME); +#endif + #if defined(HAVE_MOZILLA_TOOLKIT) && defined(HAVE_GECKO_1_8) nsCOMPtr dp = new EphyDirectoryProvider (); @@ -1067,15 +1065,7 @@ impl_list_passwords (EphyPasswordManager *manager) NS_CSTRING_ENCODING_UTF8, userName); rv = nsPassword->GetPassword (unicodeName); - if (NS_FAILED (rv)) - { - /* this usually means we couldn't decrypt the password, due to - * the master password being unavailable. Don't continue since that - * would lead to endless prompting for the master password; abort - * instead. - */ - break; - } + if (NS_FAILED (rv)) continue; nsEmbedCString userPassword; NS_UTF16ToCString (unicodeName, -- cgit v1.2.3