From 1e6f77f1f27a013170ea3da3e89ba77aa03e5c5d Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Wed, 28 Sep 2011 17:50:19 +0100 Subject: [PATCH] Bug 689349 - Don't suggest values for password text boxes (r=mfinkle) --- mobile/chrome/content/forms.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/chrome/content/forms.js b/mobile/chrome/content/forms.js index 4c6b8665c60..151a3739b3d 100644 --- a/mobile/chrome/content/forms.js +++ b/mobile/chrome/content/forms.js @@ -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)