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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h

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/modules/v8/V8ServiceWorkerMessageEventInternal.h
diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h b/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h
index 25c8ec76963929784f1a0fbe7dd7b99fdcec1c5b..59dc0e20740894c184ab2d4a8ae9a5ed056bbd20 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h
+++ b/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h
@@ -87,7 +87,9 @@ void V8ServiceWorkerMessageEventInternal::dataAttributeGetterCustom(
v8::Local<v8::Value> data;
if (SerializedScriptValue* serializedValue = event->serializedData()) {
MessagePortArray ports = event->ports();
- data = serializedValue->deserialize(isolate, &ports);
+ SerializedScriptValue::DeserializeOptions options;
+ options.messagePorts = &ports;
+ data = serializedValue->deserialize(isolate, options);
} else if (DOMWrapperWorld::current(isolate).isIsolatedWorld()) {
v8::Local<v8::Value> mainWorldData =
privateCachedData.getFromMainWorld(scriptState, event);

Powered by Google App Engine
This is Rietveld 408576698