Index: Source/modules/websockets/WebSocket.cpp |
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp |
index 4053a48d0748d8d55bacb7d61cdac40010ec206b..fc4c6496d0720ad265303e55e6f33c4dbe6c6a7b 100644 |
--- a/Source/modules/websockets/WebSocket.cpp |
+++ b/Source/modules/websockets/WebSocket.cpp |
@@ -45,6 +45,7 @@ |
#include "core/frame/DOMWindow.h" |
#include "core/frame/LocalFrame.h" |
#include "core/inspector/ScriptCallStack.h" |
+#include "heap/Handle.h" |
#include "modules/websockets/CloseEvent.h" |
#include "platform/Logging.h" |
#include "platform/blob/BlobData.h" |
@@ -627,7 +628,7 @@ void WebSocket::didReceiveBinaryData(PassOwnPtr<Vector<char> > binaryData) |
binaryData->swap(*rawData->mutableData()); |
OwnPtr<BlobData> blobData = BlobData::create(); |
blobData->appendData(rawData.release(), 0, BlobDataItem::toEndOfFile); |
- RefPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size)); |
+ RefPtrWillBeRawPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size)); |
m_eventQueue->dispatch(MessageEvent::create(blob.release(), SecurityOrigin::create(m_url)->toString())); |
break; |
} |