| Index: Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
|
| index bbd78a1a2ae54a6d24112033c8dc4a285313026c..2d4a0ef08b396d868e2e0bf722e9535f81311bf3 100644
|
| --- a/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -311,11 +311,11 @@ void WebSharedWorkerImpl::connect(WebMessagePortChannel* webChannel)
|
| void WebSharedWorkerImpl::connectTask(ExecutionContext* context, PassOwnPtr<WebMessagePortChannel> channel)
|
| {
|
| // Wrap the passed-in channel in a MessagePort, and send it off via a connect event.
|
| - RefPtr<MessagePort> port = MessagePort::create(*context);
|
| + RefPtrWillBeRawPtr<MessagePort> port = MessagePort::create(*context);
|
| port->entangle(channel);
|
| WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context);
|
| ASSERT_WITH_SECURITY_IMPLICATION(workerGlobalScope->isSharedWorkerGlobalScope());
|
| - workerGlobalScope->dispatchEvent(createConnectEvent(port));
|
| + workerGlobalScope->dispatchEvent(createConnectEvent(port.release()));
|
| }
|
|
|
| void WebSharedWorkerImpl::startWorkerContext(const WebURL& url, const WebString& name, const WebString& contentSecurityPolicy, WebContentSecurityPolicyType policyType)
|
|
|