| Index: components/autofill/content/renderer/autofill_agent.cc
|
| diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
|
| index d2bea330cd760d16e0f3dc9958fd13ddd8bd00cd..129075a9e39ff7f8605adca0ec15fbe2313054fd 100644
|
| --- a/components/autofill/content/renderer/autofill_agent.cc
|
| +++ b/components/autofill/content/renderer/autofill_agent.cc
|
| @@ -386,10 +386,14 @@ void AutofillAgent::textFieldDidEndEditing(const WebInputElement& element) {
|
|
|
| void AutofillAgent::textFieldDidChange(const WebFormControlElement& element) {
|
| DCHECK(toWebInputElement(&element) || form_util::IsTextAreaElement(element));
|
| +
|
| if (ignore_text_changes_)
|
| return;
|
|
|
| - if (!IsUserGesture())
|
| + // Disregard text changes that aren't caused by user gestures or pastes. Note
|
| + // that pastes aren't necessarily user gestures because Blink's conception of
|
| + // user gestures is centered around creating new windows/tabs.
|
| + if (!IsUserGesture() && !render_frame()->IsPasting())
|
| return;
|
|
|
| // We post a task for doing the Autofill as the caret position is not set
|
|
|