| Index: Source/modules/websockets/NewWebSocketChannelImpl.cpp
|
| diff --git a/Source/modules/websockets/NewWebSocketChannelImpl.cpp b/Source/modules/websockets/NewWebSocketChannelImpl.cpp
|
| index 53cd59b044667e434acfafe384525ad5d9589ebf..83527c16661573a70b0d9a2d38861cc6482f86f6 100644
|
| --- a/Source/modules/websockets/NewWebSocketChannelImpl.cpp
|
| +++ b/Source/modules/websockets/NewWebSocketChannelImpl.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/fileapi/FileReaderLoader.h"
|
| #include "core/fileapi/FileReaderLoaderClient.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/inspector/ConsoleMessage.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/InspectorTraceEvents.h"
|
| #include "core/loader/FrameLoader.h"
|
| @@ -140,7 +141,7 @@ bool NewWebSocketChannelImpl::connect(const KURL& url, const String& protocol)
|
| }
|
| if (MixedContentChecker::isMixedContent(document()->securityOrigin(), url)) {
|
| String message = "Connecting to a non-secure WebSocket server from a secure origin is deprecated.";
|
| - document()->addConsoleMessage(JSMessageSource, WarningMessageLevel, message);
|
| + document()->addConsoleMessage(ConsoleMessage::create(JSMessageSource, WarningMessageLevel, message));
|
| }
|
|
|
| m_url = url;
|
|
|