diff options
author | inferno@chromium.org <inferno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-10 22:39:30 +0000 |
---|---|---|
committer | inferno@chromium.org <inferno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-10 22:39:30 +0000 |
commit | 3355fbdbc15c9d66cc5d74004f8cdc243afa4054 (patch) | |
tree | 39341164c8812aead64168d007ab74f14ad7929e | |
parent | aef82c558db8f5b748ecd7e9d4a7c4661c2a2319 (diff) | |
download | chromium_src-3355fbdbc15c9d66cc5d74004f8cdc243afa4054.zip chromium_src-3355fbdbc15c9d66cc5d74004f8cdc243afa4054.tar.gz chromium_src-3355fbdbc15c9d66cc5d74004f8cdc243afa4054.tar.bz2 |
Not store autocomplete entries in DB for forms submitted using javascript.
BUG=51727
Review URL: http://codereview.chromium.org/3149003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55626 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/autocomplete_history_manager.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete_history_manager.cc b/chrome/browser/autocomplete_history_manager.cc index ca592d2..a63e457 100644 --- a/chrome/browser/autocomplete_history_manager.cc +++ b/chrome/browser/autocomplete_history_manager.cc @@ -150,6 +150,10 @@ void AutocompleteHistoryManager::StoreFormEntriesInWebDatabase( if (profile_->IsOffTheRecord()) return; + // Don't save data that was submitted through JavaScript. + if (!form.user_submitted) + return; + // We put the following restriction on stored FormFields: // - non-empty name // - non-empty value |