| Index: chrome/renderer/autofill/autofill_agent.cc
|
| diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc
|
| index 73baa1f81f024d11d04684b8c84081f43594cf48..ead763f87c81936172a52c07ae6d4c86070b4be0 100644
|
| --- a/chrome/renderer/autofill/autofill_agent.cc
|
| +++ b/chrome/renderer/autofill/autofill_agent.cc
|
| @@ -61,7 +61,8 @@ void AppendDataListSuggestions(const WebKit::WebInputElement& element,
|
|
|
| for (WebOptionElement option = options.firstItem().to<WebOptionElement>();
|
| !option.isNull(); option = options.nextItem().to<WebOptionElement>()) {
|
| - if (!StartsWith(option.value(), element.value(), false))
|
| + if (!StartsWith(option.value(), element.value(), false) ||
|
| + !element.isValidValue(option.value()))
|
| continue;
|
|
|
| values->push_back(option.value());
|
|
|