mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
look for password fields from HtmlInfo attributes
This commit is contained in:
parent
f7570122c6
commit
c308d7a610
1 changed files with 14 additions and 0 deletions
|
@ -304,6 +304,20 @@ namespace Bit.Android.Autofill
|
||||||
f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) ||
|
f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) ||
|
||||||
f.InputType.HasFlag(InputTypes.TextVariationWebPassword);
|
f.InputType.HasFlag(InputTypes.TextVariationWebPassword);
|
||||||
|
|
||||||
|
if(!inputTypePassword && f.HtmlInfo != null && f.HtmlInfo.Tag == "input" &&
|
||||||
|
(f.HtmlInfo.Attributes?.Any() ?? false))
|
||||||
|
{
|
||||||
|
foreach(var a in f.HtmlInfo.Attributes)
|
||||||
|
{
|
||||||
|
var key = a.First as Java.Lang.String;
|
||||||
|
var val = a.Second as Java.Lang.String;
|
||||||
|
if(key != null && val != null && key.ToString() == "type" && val.ToString() == "password")
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return inputTypePassword && !ValueContainsAnyTerms(f.IdEntry, _ignoreSearchTerms) &&
|
return inputTypePassword && !ValueContainsAnyTerms(f.IdEntry, _ignoreSearchTerms) &&
|
||||||
!ValueContainsAnyTerms(f.Hint, _ignoreSearchTerms);
|
!ValueContainsAnyTerms(f.Hint, _ignoreSearchTerms);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue