Bug 741831 - Readonly text inputs can trigger form autocomplete popups. r+a=mfinkle

This commit is contained in:
Margaret Leibovic 2012-04-22 09:58:29 -07:00
Родитель c0971d5a3c
Коммит bc60e80f10
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3068,7 +3068,7 @@ var FormAssistant = {
// We only want to show autocomplete suggestions for certain elements // We only want to show autocomplete suggestions for certain elements
_isAutoComplete: function _isAutoComplete(aElement) { _isAutoComplete: function _isAutoComplete(aElement) {
if (!(aElement instanceof HTMLInputElement) || if (!(aElement instanceof HTMLInputElement) || aElement.readOnly ||
(aElement.getAttribute("type") == "password") || (aElement.getAttribute("type") == "password") ||
(aElement.hasAttribute("autocomplete") && (aElement.hasAttribute("autocomplete") &&
aElement.getAttribute("autocomplete").toLowerCase() == "off")) aElement.getAttribute("autocomplete").toLowerCase() == "off"))