| Index: third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| index 8e458ec3cb2d4f0ab4eda8691b009390132a361e..1d26638607c0a390911509f627ae838d212438ab 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| @@ -449,8 +449,7 @@ static void postMessageImpl(const char* interfaceName, {{cpp_class}}* instance,
|
| // Clear references to array buffers and image bitmaps from transferables
|
| // so that the serializer can consider the array buffers as
|
| // non-transferable and serialize them into the message.
|
| - ArrayBufferArray transferableArrayBuffers = transferables.array_buffers;
|
| - transferables.array_buffers.clear();
|
| + ArrayBufferArray transferableArrayBuffers = SerializedScriptValue::ExtractNonSharedArrayBuffers(transferables);
|
| ImageBitmapArray transferableImageBitmaps = transferables.image_bitmaps;
|
| transferables.image_bitmaps.clear();
|
| SerializedScriptValue::SerializeOptions options;
|
|
|