Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: chrome/renderer/render_view.cc

Issue 5080001: Autofill select field text should be captured not selection option value (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: 80 col. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/form_manager_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 015ed0f3a0e1ab1fe0771eea078172fcaa9da461..8dff551f7ecad80ed569368b0fc51edf5ec35d9f 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2960,7 +2960,8 @@ void RenderView::willSubmitForm(WebFrame* frame, const WebFormElement& form) {
if (FormManager::WebFormElementToFormData(
form,
FormManager::REQUIRE_AUTOCOMPLETE,
- FormManager::EXTRACT_VALUE,
+ static_cast<FormManager::ExtractMask>(FormManager::EXTRACT_VALUE |
+ FormManager::EXTRACT_OPTION_TEXT),
&form_data)) {
Send(new ViewHostMsg_FormSubmitted(routing_id_, form_data));
}
« no previous file with comments | « chrome/renderer/form_manager_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698