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

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

Issue 2857303003: History API throws when serializing a SharedArrayBuffer (Closed)
Patch Set: use enum class instead of bool Created 3 years, 7 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 ba84725f7d167da4a3396659e4d0ffcb98638acf..e7c94fa74e9a23c438d9b4c0b01d4900908d1e4a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -381,7 +381,7 @@ IDBRequest* IDBObjectStore::put(ScriptState* script_state,
options.blob_info = &blob_info;
options.write_wasm_to_stream =
ExecutionContext::From(script_state)->IsSecureContext();
- options.for_storage = true;
+ options.for_storage = SerializedScriptValue::SerializeForStorage::kYes;
RefPtr<SerializedScriptValue> serialized_value =
SerializedScriptValue::Serialize(isolate, value.V8Value(), options,
exception_state);

Powered by Google App Engine
This is Rietveld 408576698