| Index: Source/core/html/parser/XSSAuditor.cpp
|
| diff --git a/Source/core/html/parser/XSSAuditor.cpp b/Source/core/html/parser/XSSAuditor.cpp
|
| index 05ae9cbafb937d7d06da5945cd787d34d91a3af9..65bc34b30b7bd31b31cf1755042187b1a7b9b864 100644
|
| --- a/Source/core/html/parser/XSSAuditor.cpp
|
| +++ b/Source/core/html/parser/XSSAuditor.cpp
|
| @@ -696,12 +696,9 @@ String XSSAuditor::decodedSnippetForJavaScript(const FilterTokenRequest& request
|
| lastNonSpacePosition = kNotFound;
|
| for (foundPosition = startPosition; foundPosition < endPosition; foundPosition++) {
|
| if (!request.shouldAllowCDATA) {
|
| - if (startsSingleLineCommentAt(string, foundPosition) || startsMultiLineCommentAt(string, foundPosition)) {
|
| - foundPosition += 2;
|
| - break;
|
| - }
|
| - if (startsHTMLCommentAt(string, foundPosition)) {
|
| - foundPosition += 4;
|
| + if (startsSingleLineCommentAt(string, foundPosition)
|
| + || startsMultiLineCommentAt(string, foundPosition)
|
| + || startsHTMLCommentAt(string, foundPosition)) {
|
| break;
|
| }
|
| }
|
|
|