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

Unified Diff: third_party/WebKit/Source/core/html/forms/InputType.cpp

Issue 2918033003: Input type check comparision should be an ASCII case-insensitive match. (Closed)
Patch Set: Created 3 years, 7 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/InputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/InputType.cpp b/third_party/WebKit/Source/core/html/forms/InputType.cpp
index 5f1912e55467fc60351dfed2438986e64a059d01..aaa270d96df825cf200de112143d280bfe004a32 100644
--- a/third_party/WebKit/Source/core/html/forms/InputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/InputType.cpp
@@ -136,7 +136,8 @@ const AtomicString& InputType::NormalizeTypeName(
const AtomicString& type_name) {
if (type_name.IsEmpty())
return InputTypeNames::text;
- InputTypeFactoryMap::const_iterator it = FactoryMap()->find(type_name);
+ InputTypeFactoryMap::const_iterator it =
+ FactoryMap()->find(AtomicString(type_name.Ascii().data()));
tkent 2017/06/05 00:27:50 As the try bots showed failures, this change is wr
return it == FactoryMap()->end() ? InputTypeNames::text : it->key;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698