Index: Source/core/workers/SharedWorkerGlobalScope.cpp |
diff --git a/Source/core/workers/SharedWorkerGlobalScope.cpp b/Source/core/workers/SharedWorkerGlobalScope.cpp |
index fe229eb0f97503c4c50b54e799ee37b9c0838c23..99453752e106a5855373c25c89eec8ac83727238 100644 |
--- a/Source/core/workers/SharedWorkerGlobalScope.cpp |
+++ b/Source/core/workers/SharedWorkerGlobalScope.cpp |
@@ -45,7 +45,8 @@ namespace WebCore { |
PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort> port) |
{ |
- RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortArray(1, port))); |
+ RefPtr<MessagePort> sourcePort = port; |
+ RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortArray(1, sourcePort)), "", "", sourcePort); |
event->initEvent(eventNames().connectEvent, false, false); |
return event.release(); |
} |