mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
bug 63961, server can't turn off password manager, r=jelwell@netscape.com, sr=alecf@netscape.com
This commit is contained in:
parent
a9e521b87c
commit
33dc92d581
@ -3872,6 +3872,21 @@ WLLT_OnSubmit(nsIContent* currentForm, nsIDOMWindowInternal* window) {
|
||||
|
||||
PRBool isText = (type.IsEmpty() || (type.CompareWithConversion("text", PR_TRUE)==0));
|
||||
PRBool isPassword = (type.CompareWithConversion("password", PR_TRUE)==0);
|
||||
#define WALLET_DONT_CACHE_ALL_PASSWORDS
|
||||
#ifdef WALLET_DONT_CACHE_ALL_PASSWORDS
|
||||
if (isPassword) {
|
||||
nsAutoString val;
|
||||
(void) inputElement->GetAttribute(NS_LITERAL_STRING("autocomplete"), val);
|
||||
if (val.EqualsIgnoreCase("off")) {
|
||||
isPassword = PR_FALSE;
|
||||
} else {
|
||||
(void) formElement->GetAttribute(NS_LITERAL_STRING("autocomplete"), val);
|
||||
if (val.EqualsIgnoreCase("off")) {
|
||||
isPassword = PR_FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef AutoCapture
|
||||
if (isPassword) {
|
||||
passwordcount++;
|
||||
|
Loading…
Reference in New Issue
Block a user