Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index f079d040b25872e1cbbc989bfa23f5bc7c052b2e..4cc6a0968b1e843ab9d2b72840a48f257ef1e60a 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -1394,13 +1394,13 @@ bool FrameLoader::shouldInterruptLoadForXFrameOptions(const String& content, con |
case XFrameOptionsConflict: { |
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()); |
+ m_frame->document()->addConsoleMessage(consoleMessage.release()); |
return true; |
} |
case XFrameOptionsInvalid: { |
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()); |
+ m_frame->document()->addConsoleMessage(consoleMessage.release()); |
return false; |
} |
default: |