From bf744b454eb1b409d6d5000ef4decb1e9aed3b2f Mon Sep 17 00:00:00 2001 From: Josselin Mouette Date: Sat, 21 Jun 2008 11:24:43 +0000 Subject: 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 --- embed/mozilla/EphyPromptService.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3