| Index: Source/core/dom/MessagePort.cpp
|
| diff --git a/Source/core/dom/MessagePort.cpp b/Source/core/dom/MessagePort.cpp
|
| index d35c3cf0e86811a0ade6a9c69f26bf34af02cb2e..f7e86f732c2db043f682b7fc4a41909c4a07ba3f 100644
|
| --- a/Source/core/dom/MessagePort.cpp
|
| +++ b/Source/core/dom/MessagePort.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/events/MessageEvent.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| +#include "core/inspector/ConsoleMessage.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| #include "public/platform/WebString.h"
|
| #include "wtf/Functional.h"
|
| @@ -87,6 +88,9 @@ void MessagePort::postMessage(ExecutionContext* context, PassRefPtr<SerializedSc
|
| return;
|
| }
|
|
|
| + if (message->containsTransferableArrayBuffer())
|
| + executionContext()->addConsoleMessage(ConsoleMessage::create(JSMessageSource, WarningMessageLevel, "MessagePort cannot send an ArrayBuffer as a transferable object yet. See http://crbug.com/334408"));
|
| +
|
| WebString messageString = message->toWireString();
|
| OwnPtr<WebMessagePortChannelArray> webChannels = toWebMessagePortChannelArray(channels.release());
|
| m_entangledChannel->postMessage(messageString, webChannels.leakPtr());
|
|
|