diff options
author | dgwallinga@chromium.org <dgwallinga@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 03:08:31 +0000 |
---|---|---|
committer | dgwallinga@chromium.org <dgwallinga@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 03:08:31 +0000 |
commit | b8db3805858713afa61b28ab9bfd8b87fff1e5ae (patch) | |
tree | 1884f645e7cec1b43520d33c416bbd3819296d85 /components | |
parent | d7324457666e3b2f58d947205a73f2afba05d177 (diff) | |
download | chromium_src-b8db3805858713afa61b28ab9bfd8b87fff1e5ae.zip chromium_src-b8db3805858713afa61b28ab9bfd8b87fff1e5ae.tar.gz chromium_src-b8db3805858713afa61b28ab9bfd8b87fff1e5ae.tar.bz2 |
Don't include forms without fields in has_more_forms calculation.
BUG=233788
Review URL: https://chromiumcodereview.appspot.com/13831013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r-- | components/autofill/renderer/form_cache.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/autofill/renderer/form_cache.cc b/components/autofill/renderer/form_cache.cc index 27441ad..5d0bed0 100644 --- a/components/autofill/renderer/form_cache.cc +++ b/components/autofill/renderer/form_cache.cc @@ -124,7 +124,8 @@ bool FormCache::ExtractFormsAndFormElements( // To avoid overly expensive computation, we impose a minimum number of // allowable fields. The corresponding maximum number of allowable fields // is imposed by WebFormElementToFormData(). - if (num_editable_elements < minimum_required_fields) { + if (num_editable_elements < minimum_required_fields && + control_elements.size() > 0) { has_skipped_forms = true; continue; } |