Index: components/autofill/content/renderer/form_autofill_util.cc |
diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc |
index 10d6cca9160885f95957ec482b9403489fa5999b..6b98dee792515cebc89f0c3e01be67ff9ac80b6b 100644 |
--- a/components/autofill/content/renderer/form_autofill_util.cc |
+++ b/components/autofill/content/renderer/form_autofill_util.cc |
@@ -74,6 +74,10 @@ bool HasTagName(const WebNode& node, const blink::WebString& tag) { |
} |
bool IsAutofillableElement(const WebFormControlElement& element) { |
+ // Exclude disabled and readonly elements. |
+ if (!element.isEnabled() || element.isReadOnly()) |
+ return false; |
+ |
const WebInputElement* input_element = toWebInputElement(&element); |
return IsAutofillableInputElement(input_element) || |
IsSelectElement(element) || |