aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosselin Mouette <jmouette@src.gnome.org>2008-06-21 19:24:43 +0800
committerJosselin Mouette <jmouette@src.gnome.org>2008-06-21 19:24:43 +0800
commitbf744b454eb1b409d6d5000ef4decb1e9aed3b2f (patch)
treefd6157e2198f6f59734041b7d743a9d6ea997097
parentbdd113a5b1a4607802719f9b3f1fc9b299d3dc0b (diff)
downloadgsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.tar
gsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.tar.gz
gsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.tar.bz2
gsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.tar.lz
gsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.tar.xz
gsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.tar.zst
gsoc2013-epiphany-bf744b454eb1b409d6d5000ef4decb1e9aed3b2f.zip
Fix the string names to obtain the proxy login prompt when using Gecko
1.9. Thanks Mike Hommey. Closes: #539417. svn path=/branches/gnome-2-22/; revision=8286
-rw-r--r--embed/mozilla/EphyPromptService.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/EphyPromptService.cpp b/embed/mozilla/EphyPromptService.cpp
index 58d5a9b6c..fea6345a7 100644
--- a/embed/mozilla/EphyPromptService.cpp
+++ b/embed/mozilla/EphyPromptService.cpp
@@ -995,8 +995,13 @@ MakeDialogText(nsIChannel* aChannel, nsIAuthInformation* aAuthInfo,
displayHost.AppendInt(port);
}
+#ifdef HAVE_GECKO_1_9
+ NS_NAMED_LITERAL_STRING(proxyText, "EnterLoginForProxy");
+ NS_NAMED_LITERAL_STRING(originText, "EnterLoginForRealm");
+#else
NS_NAMED_LITERAL_STRING(proxyText, "EnterUserPasswordForProxy");
NS_NAMED_LITERAL_STRING(originText, "EnterUserPasswordForRealm");
+#endif /* HAVE_GECKO_1_9 */
NS_NAMED_LITERAL_STRING(noRealmText, "EnterUserPasswordFor");
NS_NAMED_LITERAL_STRING(passwordText, "EnterPasswordFor");