Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Unified Diff: webkit/api/src/PlatformMessagePortChannel.cpp

Issue 263005: Webkit roll: 49213:49221 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/api/src/PlatformMessagePortChannel.cpp
===================================================================
--- webkit/api/src/PlatformMessagePortChannel.cpp (revision 28228)
+++ webkit/api/src/PlatformMessagePortChannel.cpp (working copy)
@@ -38,6 +38,7 @@
#include "MessagePort.h"
#include "ScriptExecutionContext.h"
+#include "SerializedScriptValue.h"
using namespace WebKit;
@@ -178,7 +179,7 @@
if (!m_localPort || !m_webChannel)
return;
- WebString messageString = message->message();
+ WebString messageString = message->message()->toString();
OwnPtr<WebCore::MessagePortChannelArray> channels = message->channels();
WebMessagePortChannelArray* webChannels = NULL;
if (channels.get() && channels->size()) {
@@ -210,7 +211,8 @@
(*channels)[i] = MessagePortChannel::create(platformChannel);
}
}
- result = MessagePortChannel::EventData::create(message, channels.release());
+ RefPtr<SerializedScriptValue> serializedMessage = SerializedScriptValue::create(message);
+ result = MessagePortChannel::EventData::create(serializedMessage.release(), channels.release());
}
return rv;
« no previous file with comments | « DEPS ('k') | webkit/glue/webworker_impl.h » ('j') | webkit/glue/webworkerclient_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698