| Index: Source/core/html/parser/XSSAuditorDelegate.cpp
|
| diff --git a/Source/core/html/parser/XSSAuditorDelegate.cpp b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| index 6f18f20cb83ee17844210f6cb0d5e2deb545c01e..51f0825f52b89b57da5d37814a62de594734fcb5 100644
|
| --- a/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -43,20 +43,20 @@ namespace blink {
|
| String XSSInfo::buildConsoleError() const
|
| {
|
| StringBuilder message;
|
| - message.append("The XSS Auditor ");
|
| + message.appendLiteral("The XSS Auditor ");
|
| message.append(m_didBlockEntirePage ? "blocked access to" : "refused to execute a script in");
|
| - message.append(" '");
|
| + message.appendLiteral(" '");
|
| message.append(m_originalURL);
|
| - message.append("' because ");
|
| + message.appendLiteral("' because ");
|
| message.append(m_didBlockEntirePage ? "the source code of a script" : "its source code");
|
| - message.append(" was found within the request.");
|
| + message.appendLiteral(" was found within the request.");
|
|
|
| if (m_didSendCSPHeader)
|
| - message.append(" The server sent a 'Content-Security-Policy' header requesting this behavior.");
|
| + message.appendLiteral(" The server sent a 'Content-Security-Policy' header requesting this behavior.");
|
| else if (m_didSendXSSProtectionHeader)
|
| - message.append(" The server sent an 'X-XSS-Protection' header requesting this behavior.");
|
| + message.appendLiteral(" The server sent an 'X-XSS-Protection' header requesting this behavior.");
|
| else
|
| - message.append(" The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.");
|
| + message.appendLiteral(" The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.");
|
|
|
| return message.toString();
|
| }
|
|
|