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

Unified Diff: third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
index 9fc4021c83cb0cc755e84c7a384d8fbc45db78c3..4d74d13ad8392849057826d1266e20241195e87a 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp
@@ -869,13 +869,14 @@ String XSSAuditor::canonicalizedSnippetForJavaScript(
bool XSSAuditor::isContainedInRequest(const String& decodedSnippet) {
if (decodedSnippet.isEmpty())
return false;
- if (m_decodedURL.find(decodedSnippet, 0, TextCaseInsensitive) != kNotFound)
+ if (m_decodedURL.find(decodedSnippet, 0, TextCaseUnicodeInsensitive) !=
+ kNotFound)
return true;
if (m_decodedHTTPBodySuffixTree &&
!m_decodedHTTPBodySuffixTree->mightContain(decodedSnippet))
return false;
- return m_decodedHTTPBody.find(decodedSnippet, 0, TextCaseInsensitive) !=
- kNotFound;
+ return m_decodedHTTPBody.find(decodedSnippet, 0,
+ TextCaseUnicodeInsensitive) != kNotFound;
}
bool XSSAuditor::isLikelySafeResource(const String& url) {

Powered by Google App Engine
This is Rietveld 408576698