Index: chrome/browser/autocomplete_history_manager.cc |
=================================================================== |
--- chrome/browser/autocomplete_history_manager.cc (revision 55354) |
+++ chrome/browser/autocomplete_history_manager.cc (working copy) |
@@ -150,6 +150,10 @@ |
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 |