зеркало из https://github.com/mozilla/gecko-dev.git
Bug 741831 - Readonly text inputs can trigger form autocomplete popups. r+a=mfinkle
This commit is contained in:
Родитель
c0971d5a3c
Коммит
bc60e80f10
|
@ -3068,7 +3068,7 @@ var FormAssistant = {
|
|||
|
||||
// We only want to show autocomplete suggestions for certain elements
|
||||
_isAutoComplete: function _isAutoComplete(aElement) {
|
||||
if (!(aElement instanceof HTMLInputElement) ||
|
||||
if (!(aElement instanceof HTMLInputElement) || aElement.readOnly ||
|
||||
(aElement.getAttribute("type") == "password") ||
|
||||
(aElement.hasAttribute("autocomplete") &&
|
||||
aElement.getAttribute("autocomplete").toLowerCase() == "off"))
|
||||
|
|
Загрузка…
Ссылка в новой задаче