Index: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp |
index a3fd0a5591e92f7d5f8cea3fe12ef782c9e1367a..d3324ea9eb73eea4a274adec5882e2bf50350560 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp |
@@ -114,6 +114,9 @@ void SerializedScriptValueFactory::transferData(SerializedScriptValue* serialize |
if (exceptionState.hadException()) |
return; |
serializedValue->transferArrayBuffers(isolate, transferables->arrayBuffers, exceptionState); |
+ if (exceptionState.hadException()) |
+ return; |
+ serializedValue->transferOffscreenCanvas(isolate, transferables->offscreenCanvases, exceptionState); |
} |
ScriptValueSerializer::Status SerializedScriptValueFactory::doSerialize(v8::Local<v8::Value> value, SerializedScriptValueWriter& writer, Transferables* transferables, WebBlobInfoArray* blobInfo, SerializedScriptValue* serializedValue, v8::TryCatch& tryCatch, String& errorMessage, v8::Isolate* isolate) |