Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: components/autofill/content/renderer/form_autofill_util.cc

Issue 1955963002: [Autofill] Send events to fields being autofilled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added focus check Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6b48f2d45900db4c80b27442b848c11c4b4c9033..6fa43b221fddbf1f1dd5c8cb8f789a85194265b0 100644
--- a/components/autofill/content/renderer/form_autofill_util.cc
+++ b/components/autofill/content/renderer/form_autofill_util.cc
@@ -890,7 +890,7 @@ void FillFormField(const FormFieldData& data,
// returns the default maxlength value.
TruncateString(&value, input_element->maxLength());
}
- field->setValue(value, true);
+ field->setAutofillValue(value);
}
// Setting the form might trigger JavaScript, which is capable of
// destroying the frame.
« no previous file with comments | « chrome/browser/autofill/autofill_interactive_uitest.cc ('k') | third_party/WebKit/Source/web/WebFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698