diff options
-rw-r--r-- | webkit/glue/dom_operations.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc index da1a961..1db09c1 100644 --- a/webkit/glue/dom_operations.cc +++ b/webkit/glue/dom_operations.cc @@ -297,6 +297,8 @@ static bool FillFormImpl(FormElements* fe, const FormData& data, bool submit) { submit_found = true; continue; } + if (!it->second->value().isEmpty()) // Don't overwrite pre-filled values. + continue; it->second->setValue(StdWStringToString(data_map[it->first])); it->second->setAutofilled(true); it->second->onChange(); |