bug 154824, stealth pref to override autocomplete=off, r=mstoltz, sr=dveditz

git-svn-id: svn://10.0.0.236/trunk@131136 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morse%netscape.com
2002-10-04 03:39:46 +00:00
parent 1b3e519f6c
commit f902af5f3c

View File

@@ -3989,8 +3989,8 @@ WLLT_OnSubmit(nsIContent* currentForm, nsIDOMWindowInternal* window) {
#define WALLET_DONT_CACHE_ALL_PASSWORDS
#ifdef WALLET_DONT_CACHE_ALL_PASSWORDS
// Do not store this form element if the 'autocomplete = off' attibute is present,
// unless both wallet encryption and 'wallet.crypto.autocompleteoverride' are enabled.
if (isPassword && !(SI_GetBoolPref(pref_Crypto, PR_FALSE) && SI_GetBoolPref(pref_AutoCompleteOverride, PR_FALSE))) {
// unless 'wallet.crypto.autocompleteoverride' is enabled.
if (isPassword && !SI_GetBoolPref(pref_AutoCompleteOverride, PR_FALSE)) {
nsAutoString val;
(void) inputElement->GetAttribute(NS_LITERAL_STRING("autocomplete"), val);
if (val.EqualsIgnoreCase("off")) {