| 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 ed8330b9afa2e06f0994c9db8bec9ea4161ab45c..2d19748ec214a2e66367df267065f5da4a98e15f 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| @@ -284,9 +284,10 @@ void V8Window::postMessageMethodCustom(
|
| if (exceptionState.hadException())
|
| return;
|
|
|
| + message->prepareForTransferringContext();
|
| window->postMessage(message.get(), transferables.messagePorts, targetOrigin,
|
| source, exceptionState);
|
| - message->unregisterMemoryAllocatedByCurrentScriptContext();
|
| + message->finalizeTransferringContext();
|
| }
|
|
|
| void V8Window::openMethodCustom(
|
|
|