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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp

Issue 2749503002: [wasm] enable wasm structured cloning in specific cases (Closed)
Patch Set: fixed idb test 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/modules/indexeddb/IDBObjectStore.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
index c37d6a259b2c701521c8cee42571ed0c4da2efea..d252ca9913f9debd962ec8e5a06206adb623ea84 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -408,6 +408,8 @@ IDBRequest* IDBObjectStore::put(ScriptState* scriptState,
Vector<WebBlobInfo> blobInfo;
SerializedScriptValue::SerializeOptions options;
options.blobInfo = &blobInfo;
+ options.writeWasmToStream =
+ scriptState->getExecutionContext()->isSecureContext();
RefPtr<SerializedScriptValue> serializedValue =
SerializedScriptValue::serialize(isolate, value.v8Value(), options,
exceptionState);

Powered by Google App Engine
This is Rietveld 408576698