summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 23:16:32 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 23:16:32 +0000
commitc11cfdb9bd5b45bb2c710a875944fb6f9d6d21de (patch)
tree1ec2a7bcaaab915daef14d6d7e4396df46c239a1 /webkit/glue/editor_client_impl.cc
parente03b3477198cc99ab43e501b782710749ba2478e (diff)
downloadchromium_src-c11cfdb9bd5b45bb2c710a875944fb6f9d6d21de.zip
chromium_src-c11cfdb9bd5b45bb2c710a875944fb6f9d6d21de.tar.gz
chromium_src-c11cfdb9bd5b45bb2c710a875944fb6f9d6d21de.tar.bz2
The autofill code was always assuming input element were part of a form, which they don't have to be.
BUG=4825 TEST=Go to www.blogger.com, login, click Add. Type something in the URL input field of the frame that is opened. Review URL: http://codereview.chromium.org/12499 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6069 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r--webkit/glue/editor_client_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index 9ab664e..4bea274 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -650,7 +650,7 @@ void EditorClientImpl::DoAutofill(WebCore::HTMLInputElement* input_element,
// First let's see if there is a password listener for that element.
WebFrameImpl* webframe =
- WebFrameImpl::FromFrame(input_element->form()->document()->frame());
+ WebFrameImpl::FromFrame(input_element->document()->frame());
webkit_glue::PasswordAutocompleteListener* listener =
webframe->GetPasswordListener(input_element);
if (listener) {