From a4efa0d6309c2f3370d5843937e0421b60d8f090 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Tue, 8 Jun 1999 11:39:47 +0000 Subject: [PATCH] fix treatment of notification message git-svn-id: svn://10.0.0.236/trunk@34196 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/wallet/src/singsign.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mozilla/extensions/wallet/src/singsign.cpp b/mozilla/extensions/wallet/src/singsign.cpp index d0a920ad66a..3281d1b0acd 100644 --- a/mozilla/extensions/wallet/src/singsign.cpp +++ b/mozilla/extensions/wallet/src/singsign.cpp @@ -386,6 +386,21 @@ si_RemoveAllSignonData(); PRIVATE void si_SetSignonRememberingPref(PRBool x) { + + /* Note: + * We initially want the signon pref to be TRUE so that a notification will be given + * the first time a signon form is sumbitted. So that is the default value if + * we don't find the pref in the preference file. However, if the user opens the + * preference panel and clicks OK, a value of false for the signon pref is written + * to the file. This will prevent the notification message from ever occurring. + * + * To get around this problem, if the signon pref is FALSE and no notification has + * ever been given, we will treat this as if the signon pref were TRUE + */ + if (!x && !SI_GetBoolPref("signon.Notified", PR_FALSE)) { + x = PR_TRUE; + } + /* do nothing if new value of pref is same as current value */ if (x == si_RememberSignons) { return;