Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: third_party/WebKit/Source/web/WebFormControlElement.cpp

Issue 1473733008: [Autofill] Respect the autocomplete=off attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/common/autofill_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFormControlElement.cpp
diff --git a/third_party/WebKit/Source/web/WebFormControlElement.cpp b/third_party/WebKit/Source/web/WebFormControlElement.cpp
index c78a0477d3519b603a03ff903e4197a2b52a16df..0c65d270e1e4ebcf440b4ddf5dda077a834a4b85 100644
--- a/third_party/WebKit/Source/web/WebFormControlElement.cpp
+++ b/third_party/WebKit/Source/web/WebFormControlElement.cpp
@@ -83,6 +83,8 @@ bool WebFormControlElement::autoComplete() const
return constUnwrap<HTMLInputElement>()->shouldAutocomplete();
if (isHTMLTextAreaElement(*m_private))
return constUnwrap<HTMLTextAreaElement>()->shouldAutocomplete();
+ if (isHTMLSelectElement(*m_private))
+ return constUnwrap<HTMLSelectElement>()->shouldAutocomplete();
return false;
}
« no previous file with comments | « components/autofill/core/common/autofill_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698