diff options
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index e1b3e1e..4daa74d 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -644,6 +644,9 @@ void EditorClientImpl::textFieldDidEndEditing(WebCore::Element*) { // Cancel any pending DoAutofill calls. autofill_factory_.RevokeAll(); + + // Hide any showing popup. + web_view_->HideAutoCompletePopup(); } void EditorClientImpl::textDidChangeInTextField(WebCore::Element* element) { @@ -687,8 +690,10 @@ void EditorClientImpl::DoAutofill(WebCore::HTMLInputElement* input_element, bool caret_at_end = input_element->selectionStart() == input_element->selectionEnd() && input_element->selectionEnd() == static_cast<int>(value.length()); - if (value.empty() || !caret_at_end) + if (value.empty() || !caret_at_end) { + web_view_->HideAutoCompletePopup(); return; + } // First let's see if there is a password listener for that element. WebFrameImpl* webframe = |