diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-22 17:25:53 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-22 17:25:53 +0000 |
commit | 59f5e0204cbc0e524b2687fb1beddda82047d16d (patch) | |
tree | bc0d9452333240d3a9d9a682cb6d27666089c612 /webkit/glue/form_data.h | |
parent | fd98f105b85f074a1b6adb2b6ab37d2e36ffbc92 (diff) | |
download | chromium_src-59f5e0204cbc0e524b2687fb1beddda82047d16d.zip chromium_src-59f5e0204cbc0e524b2687fb1beddda82047d16d.tar.gz chromium_src-59f5e0204cbc0e524b2687fb1beddda82047d16d.tar.bz2 |
AutoFill: Record whether the user initiated the form submission and don't save form data if the form was not user-submitted.
BUG=48225
TEST=none
Review URL: http://codereview.chromium.org/2842062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_data.h')
-rw-r--r-- | webkit/glue/form_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/form_data.h b/webkit/glue/form_data.h index 033cac3..7332cd9 100644 --- a/webkit/glue/form_data.h +++ b/webkit/glue/form_data.h @@ -23,6 +23,8 @@ struct FormData { GURL origin; // The action target of the form. GURL action; + // true if this form was submitted by a user gesture and not javascript. + bool user_submitted; // A vector of all the input fields in the form. std::vector<FormField> fields; @@ -32,6 +34,7 @@ struct FormData { StringToLowerASCII(method) == StringToLowerASCII(form.method) && origin == form.origin && action == form.action && + user_submitted == form.user_submitted && fields == form.fields); } }; |