Index: third_party/WebKit/Source/core/dom/MessagePort.cpp |
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.cpp b/third_party/WebKit/Source/core/dom/MessagePort.cpp |
index 4c57d77312993f2a3d103b8fd08eae3ce3d89b26..82fceb6323bcb4e60f579de0bd8237c96e17745e 100644 |
--- a/third_party/WebKit/Source/core/dom/MessagePort.cpp |
+++ b/third_party/WebKit/Source/core/dom/MessagePort.cpp |
@@ -45,11 +45,13 @@ |
MessagePort* MessagePort::create(ExecutionContext& executionContext) |
{ |
- return new MessagePort(executionContext); |
+ MessagePort* port = new MessagePort(executionContext); |
+ port->suspendIfNeeded(); |
+ return port; |
} |
MessagePort::MessagePort(ExecutionContext& executionContext) |
- : ContextLifecycleObserver(&executionContext) |
+ : ActiveDOMObject(&executionContext) |
, m_started(false) |
, m_closed(false) |
, m_weakFactory(this) |
@@ -276,7 +278,7 @@ |
DEFINE_TRACE(MessagePort) |
{ |
- ContextLifecycleObserver::trace(visitor); |
+ ActiveDOMObject::trace(visitor); |
RefCountedGarbageCollectedEventTargetWithInlineData<MessagePort>::trace(visitor); |
} |