This desired behavior is similar to with IndexedDB and the notifications APIs. See https://crbug.com/716320, and the associated web-platform tests here: https://w3c-test.org/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2c08e4da26268c0297c10e0579f3851d6c922179 commit 2c08e4da26268c0297c10e0579f3851d6c922179 Author: binji <binji@chromium.org> Date: Fri May 12 00:11:51 2017 History API throws when serializing a SharedArrayBuffer See https://html.spec.whatwg.org/multipage/infrastructure.html#safe-passing-of-structured-data And the web platform test here: https://github.com/w3c/web-platform-tests/blob/master/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/serialization-via-history.html BUG= chromium:718193 Review-Url: https://codereview.chromium.org/2857303003 Cr-Commit-Position: refs/heads/master@{#471133} [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/serialization-via-history-expected.txt [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/bindings/scripts/v8_methods.py [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/bindings/scripts/v8_types.py [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp [modify] https://crrev.com/2c08e4da26268c0297c10e0579f3851d6c922179/third_party/WebKit/Source/modules/notifications/NotificationData.cpp
Comment 1 by binji@chromium.org
, May 3 2017