diff options
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r-- | chrome/renderer/render_view.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 39e6ec6..d7f350a 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -1973,6 +1973,12 @@ void RenderView::queryAutofillSuggestions(const WebNode& node, webkit_glue::FormField field; FormManager::WebFormControlElementToFormField(element, true, &field); + // WebFormControlElementToFormField does not scrape the DOM for the field + // label, so find the label here. + // TODO(jhawkins): Add form and field identities so we can use the cached form + // data in FormManager. + field.set_label(FormManager::LabelForElement(element)); + Send(new ViewHostMsg_QueryFormFieldAutofill( routing_id_, autofill_query_id_, field)); } |