mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 689349 - Don't suggest values for password text boxes (r=mfinkle)
This commit is contained in:
parent
f999dc9823
commit
1e6f77f1f2
@ -546,6 +546,9 @@ FormAssistant.prototype = {
|
||||
|
||||
_isAutocomplete: function formHelperIsAutocomplete(aElement) {
|
||||
if (aElement instanceof HTMLInputElement) {
|
||||
if (aElement.getAttribute("type") == "password")
|
||||
return false;
|
||||
|
||||
let autocomplete = aElement.getAttribute("autocomplete");
|
||||
let allowedValues = ["off", "false", "disabled"];
|
||||
if (allowedValues.indexOf(autocomplete) == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user