| Index: webkit/glue/editor_client_impl.cc
|
| ===================================================================
|
| --- webkit/glue/editor_client_impl.cc (revision 25715)
|
| +++ webkit/glue/editor_client_impl.cc (working copy)
|
| @@ -658,6 +658,9 @@
|
| // Hide any showing popup.
|
| web_view_->HideAutoCompletePopup();
|
|
|
| + if (!editing_client_)
|
| + return; // The page is getting closed, don't fill the password.
|
| +
|
| // Notify any password-listener of the focus change.
|
| WebCore::HTMLInputElement* input_element =
|
| webkit_glue::ElementToHTMLInputElement(element);
|
| @@ -666,9 +669,6 @@
|
|
|
| WebFrameImpl* webframe =
|
| WebFrameImpl::FromFrame(input_element->document()->frame());
|
| - if (webframe->GetWebViewImpl() && !webframe->GetWebViewImpl()->GetDelegate())
|
| - return; // The page is getting closed, don't fill the password.
|
| -
|
| webkit_glue::PasswordAutocompleteListener* listener =
|
| webframe->GetPasswordListener(input_element);
|
| if (!listener)
|
|
|