| Index: Source/core/loader/FrameLoader.cpp
|
| diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
|
| index 84dd7c9bd408b34ffa57df5a0f4255dea16ab5f4..165c25c7710c62d20afd29610a4d084a4783dd5d 100644
|
| --- a/Source/core/loader/FrameLoader.cpp
|
| +++ b/Source/core/loader/FrameLoader.cpp
|
| @@ -1392,13 +1392,13 @@ bool FrameLoader::shouldInterruptLoadForXFrameOptions(const String& content, con
|
| case XFrameOptionsAllowAll:
|
| return false;
|
| case XFrameOptionsConflict: {
|
| - RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, "Multiple 'X-Frame-Options' headers with conflicting values ('" + content + "') encountered when loading '" + url.elidedString() + "'. Falling back to 'DENY'.");
|
| + RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, "Multiple 'X-Frame-Options' headers with conflicting values ('" + content + "') encountered when loading '" + url.elidedString() + "'. Falling back to 'DENY'.");
|
| consoleMessage->setRequestIdentifier(requestIdentifier);
|
| m_frame->document()->addMessage(consoleMessage.release());
|
| return true;
|
| }
|
| case XFrameOptionsInvalid: {
|
| - RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, "Invalid 'X-Frame-Options' header encountered when loading '" + url.elidedString() + "': '" + content + "' is not a recognized directive. The header will be ignored.");
|
| + RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, "Invalid 'X-Frame-Options' header encountered when loading '" + url.elidedString() + "': '" + content + "' is not a recognized directive. The header will be ignored.");
|
| consoleMessage->setRequestIdentifier(requestIdentifier);
|
| m_frame->document()->addMessage(consoleMessage.release());
|
| return false;
|
|
|