| Index: Source/core/dom/ScriptExecutionContext.cpp
|
| diff --git a/Source/core/dom/ScriptExecutionContext.cpp b/Source/core/dom/ScriptExecutionContext.cpp
|
| index 5ca4d368ca2f9350c98cca3b8f26de0ca36952cf..9d79d7919eb9f246575895e2b1e47bec686fb6d5 100644
|
| --- a/Source/core/dom/ScriptExecutionContext.cpp
|
| +++ b/Source/core/dom/ScriptExecutionContext.cpp
|
| @@ -143,7 +143,7 @@ void ScriptExecutionContext::createdMessagePort(MessagePort* port)
|
| {
|
| ASSERT(port);
|
| ASSERT((isDocument() && isMainThread())
|
| - || (isWorkerContext() && currentThread() == static_cast<WorkerContext*>(this)->thread()->threadID()));
|
| + || (isWorkerContext() && static_cast<WorkerContext*>(this)->thread()->isCurrentThread()));
|
|
|
| m_messagePorts.add(port);
|
| }
|
| @@ -152,7 +152,7 @@ void ScriptExecutionContext::destroyedMessagePort(MessagePort* port)
|
| {
|
| ASSERT(port);
|
| ASSERT((isDocument() && isMainThread())
|
| - || (isWorkerContext() && currentThread() == static_cast<WorkerContext*>(this)->thread()->threadID()));
|
| + || (isWorkerContext() && static_cast<WorkerContext*>(this)->thread()->isCurrentThread()));
|
|
|
| m_messagePorts.remove(port);
|
| }
|
|
|