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

Unified Diff: Source/bindings/core/v8/ScriptValueSerializer.cpp

Issue 1064123002: compositor-worker: Introduce CompositorProxy::disconnect(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix-win-for-realz Created 5 years, 8 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
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/dom/CompositorProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptValueSerializer.cpp
diff --git a/Source/bindings/core/v8/ScriptValueSerializer.cpp b/Source/bindings/core/v8/ScriptValueSerializer.cpp
index 15644aa4921cdaa9e4f7775891bd547183cdc880..af0fa1b3736ac3796d03c9eceb79ea25b23d6924 100644
--- a/Source/bindings/core/v8/ScriptValueSerializer.cpp
+++ b/Source/bindings/core/v8/ScriptValueSerializer.cpp
@@ -836,6 +836,8 @@ ScriptValueSerializer::StateBase* ScriptValueSerializer::writeCompositorProxy(v8
CompositorProxy* compositorProxy = V8CompositorProxy::toImpl(value.As<v8::Object>());
if (!compositorProxy)
return nullptr;
+ if (!compositorProxy->connected())
+ return handleError(DataCloneError, "A CompositorProxy object has been disconnected, and could therefore not be cloned.", next);
m_writer.writeCompositorProxy(*compositorProxy);
return nullptr;
}
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/dom/CompositorProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698