Index: Source/core/dom/MessagePort.cpp |
diff --git a/Source/core/dom/MessagePort.cpp b/Source/core/dom/MessagePort.cpp |
index 16ea9a0c8f299dab772a94853ca530f508819cb6..45179fe961b689b324e44bac40a81deeaa893f1e 100644 |
--- a/Source/core/dom/MessagePort.cpp |
+++ b/Source/core/dom/MessagePort.cpp |
@@ -30,6 +30,7 @@ |
#include "bindings/core/v8/ExceptionState.h" |
#include "bindings/core/v8/ExceptionStatePlaceholder.h" |
#include "bindings/core/v8/SerializedScriptValue.h" |
+#include "core/dom/CrossThreadTask.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/ExecutionContext.h" |
#include "core/events/MessageEvent.h" |
@@ -126,7 +127,7 @@ PassOwnPtr<blink::WebMessagePortChannel> MessagePort::disentangle() |
void MessagePort::messageAvailable() |
{ |
ASSERT(executionContext()); |
- executionContext()->postTask(bind(&MessagePort::dispatchMessages, m_weakFactory.createWeakPtr())); |
+ executionContext()->postTask(createCrossThreadTask(&MessagePort::dispatchMessages, m_weakFactory.createWeakPtr())); |
} |
void MessagePort::start() |