summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 23:05:47 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 23:05:47 +0000
commit604d902135a1a62d31f93675bfc72a5e722650cc (patch)
treeee2be398ca2dfb684f69493e6e8a7284439dd69d /webkit
parent9891b134ec8df2a9f12ea9b9d00d9b2da82eea47 (diff)
downloadchromium_src-604d902135a1a62d31f93675bfc72a5e722650cc.zip
chromium_src-604d902135a1a62d31f93675bfc72a5e722650cc.tar.gz
chromium_src-604d902135a1a62d31f93675bfc72a5e722650cc.tar.bz2
2 things:
- relanding the CL that fixes the layout tests - turning on more of the autofill popup to see if this is causing the perf regression. TBR=nsylvain Review URL: http://codereview.chromium.org/9708 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webframeloaderclient_impl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/glue/webframeloaderclient_impl.cc b/webkit/glue/webframeloaderclient_impl.cc
index 06e0645..6c50037 100644
--- a/webkit/glue/webframeloaderclient_impl.cc
+++ b/webkit/glue/webframeloaderclient_impl.cc
@@ -363,9 +363,9 @@ void WebFrameLoaderClient::dispatchDidFinishDocumentLoad() {
actions.push_back(*data);
// Let's remember the names of password related fields so we do not
// autofill them with the regular form autofill.
- DCHECK(!data->username_element.empty());
+ if (!data->username_element.empty())
+ password_related_fields.insert(data->username_element);
DCHECK(!data->password_element.empty());
- password_related_fields.insert(data->username_element);
password_related_fields.insert(data->password_element);
if (!data->old_password_element.empty())
password_related_fields.insert(data->old_password_element);
@@ -374,8 +374,7 @@ void WebFrameLoaderClient::dispatchDidFinishDocumentLoad() {
// Now let's register for any text input.
// TODO(jcampan): bug #3847 merge password and form autofill so we
// traverse the form elements only once.
- // Disabling the autofill to investigate the perf regression on build bot.
- // RegisterAutofillListeners(form, password_related_fields);
+ RegisterAutofillListeners(form, password_related_fields);
}
}
@@ -731,6 +730,7 @@ void WebFrameLoaderClient::RegisterAutofillListeners(
if (excluded_fields.find(name) != excluded_fields.end())
continue;
+/* Disabling this temporarily to investigate perf regressions
#if !defined(OS_MACOSX)
// FIXME on Mac
webkit_glue::FormAutocompleteListener* listener =
@@ -738,6 +738,7 @@ void WebFrameLoaderClient::RegisterAutofillListeners(
input_element);
webkit_glue::AttachForInlineAutocomplete(input_element, listener);
#endif
+ */
}
}