| Index: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| index f4f30a106cd2dfd520ba62a7c10b3afc620fc54c..f50154fc5f688d6a14c42bbf4550985ce63dbff3 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| @@ -193,7 +193,7 @@
|
| // postMessage(message, targetOrigin, {sequence of transferrables})
|
| // Legacy non-standard implementations in webkit allowed:
|
| // postMessage(message, {sequence of transferrables}, targetOrigin);
|
| - Transferables* transferables = SerializedScriptValueFactory::instance().createTransferables();
|
| + Transferables transferables;
|
| int targetOriginArgIndex = 1;
|
| if (info.Length() > 2) {
|
| int transferablesArgIndex = 2;
|
| @@ -202,18 +202,18 @@
|
| targetOriginArgIndex = 2;
|
| transferablesArgIndex = 1;
|
| }
|
| - if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[transferablesArgIndex], transferablesArgIndex, *transferables, exceptionState)) {
|
| + if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[transferablesArgIndex], transferablesArgIndex, transferables, exceptionState)) {
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| }
|
| TOSTRING_VOID(V8StringResource<TreatNullAndUndefinedAsNullString>, targetOrigin, info[targetOriginArgIndex]);
|
|
|
| - RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], transferables, exceptionState);
|
| + RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], &transferables, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
|
|
| - window->postMessage(message.release(), transferables->messagePorts, targetOrigin, source, exceptionState);
|
| + window->postMessage(message.release(), transferables.messagePorts, targetOrigin, source, exceptionState);
|
| exceptionState.throwIfNeeded();
|
| }
|
|
|
|
|