From 8a90973ba893d84946c898f137fd2efb3ced96ac Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 18 Oct 2003 15:50:36 +0000 Subject: Looks like I copied a bug from mozilla js code. Do not show bogus 2003-10-18 Marco Pesenti Gritti * embed/mozilla/EphyHeaderSniffer.cpp: Looks like I copied a bug from mozilla js code. Do not show bogus checkbox. --- ChangeLog | 7 +++++++ embed/mozilla/EphyHeaderSniffer.cpp | 15 +++------------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40cc9b3f2..05610ebdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-10-18 Marco Pesenti Gritti + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Looks like I copied a bug from mozilla js code. + Do not show bogus checkbox. + 2003-10-18 Marco Pesenti Gritti * embed/mozilla/MozDownload.cpp: diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp index 78135fe35..407967b87 100644 --- a/embed/mozilla/EphyHeaderSniffer.cpp +++ b/embed/mozilla/EphyHeaderSniffer.cpp @@ -257,37 +257,28 @@ NS_IMETHODIMP EphyHeaderSniffer::Prompt (const PRUnichar *dialogTitle, const PRU const PRUnichar *passwordRealm, PRUint32 savePassword, const PRUnichar *defaultText, PRUnichar **result, PRBool *_retval) { - PRBool checkValue; - if (defaultText) *result = ToNewUnicode(nsDependentString(defaultText)); - checkValue = savePassword; return mPrompt->Prompt (nsnull, dialogTitle, text, result, - passwordRealm, &checkValue, _retval); + nsnull, nsnull, _retval); } NS_IMETHODIMP EphyHeaderSniffer::PromptUsernameAndPassword (const PRUnichar *dialogTitle, const PRUnichar *text, const PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **user, PRUnichar **pwd, PRBool *_retval) { - PRBool checkValue; - *_retval = savePassword; - checkValue = savePassword; return mPrompt->PromptUsernameAndPassword (nsnull, dialogTitle, text, user, pwd, - passwordRealm, &checkValue, _retval); + nsnull, nsnull, _retval); } NS_IMETHODIMP EphyHeaderSniffer::PromptPassword (const PRUnichar *dialogTitle, const PRUnichar *text, const PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **pwd, PRBool *_retval) { - PRBool checkValue; - *_retval = savePassword; - checkValue = savePassword; return mPrompt->PromptPassword (nsnull, dialogTitle, text, pwd, - passwordRealm, &checkValue, _retval); + nsnull, nsnull, _retval); } -- cgit v1.2.3