diff options
-rw-r--r-- | chrome/renderer/autofill/autofill_agent.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc index 73baa1f..ead763f 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()); |