diff options
Diffstat (limited to 'webkit/glue/searchable_form_data.cc')
| -rw-r--r-- | webkit/glue/searchable_form_data.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webkit/glue/searchable_form_data.cc b/webkit/glue/searchable_form_data.cc index 3c787b2..6187897 100644 --- a/webkit/glue/searchable_form_data.cc +++ b/webkit/glue/searchable_form_data.cc @@ -320,10 +320,8 @@ SearchableFormData* SearchableFormData::Create(WebCore::HTMLFormElement* form) { if (frame == NULL) return NULL; - // Only consider forms that GET data, do not have script for onsubmit, and - // the action targets an http page. - if (!IsFormMethodGet(form) || FormHasOnSubmit(form) || - !IsHTTPFormSubmit(form)) + // Only consider forms that GET data and the action targets an http page. + if (!IsFormMethodGet(form) || !IsHTTPFormSubmit(form)) return NULL; Vector<char> enc_string; |
