diff options
-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 |