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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp

Issue 2755383004: Encapsulate optional SerializedScriptValue serialize/deserialize parameters. (Closed)
Patch Set: fuzzer Created 3 years, 9 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
Index: third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
index c4f7e673b535a583320e17091009ba1bfaace6d6..0e838f1372e0fa00477916e5d7252e04fa577960 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
@@ -68,7 +68,9 @@ void V8MessageEvent::dataAttributeGetterCustom(
if (SerializedScriptValue* serializedValue =
event->dataAsSerializedScriptValue()) {
MessagePortArray ports = event->ports();
- result = serializedValue->deserialize(info.GetIsolate(), &ports);
+ SerializedScriptValue::DeserializeOptions options;
+ options.messagePorts = &ports;
+ result = serializedValue->deserialize(info.GetIsolate(), options);
} else {
result = v8::Null(info.GetIsolate());
}

Powered by Google App Engine
This is Rietveld 408576698