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 0762a8c2f42d63453203996698864f515690072f..46852f2fbfba8457562ea1f63a333f8977436389 100644 |
--- a/components/autofill/content/renderer/form_autofill_util.cc |
+++ b/components/autofill/content/renderer/form_autofill_util.cc |
@@ -537,6 +537,9 @@ void FillFormField(const FormFieldData& data, |
if (data.value.empty()) |
return; |
+ if (!data.is_autofilled) |
+ return; |
+ |
field->setAutofilled(true); |
WebInputElement* input_element = toWebInputElement(field); |
@@ -571,6 +574,9 @@ void PreviewFormField(const FormFieldData& data, |
if (data.value.empty()) |
return; |
+ if (!data.is_autofilled) |
+ return; |
+ |
// Preview input, textarea and select fields. For input fields, excludes |
// checkboxes and radio buttons, as there is no provision for |
// setSuggestedCheckedValue in WebInputElement. |