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

Issue 2878053002: Keep materialized ArrayBuffer and ImageBitmap objects in SerializedScriptValue. (Closed)

Created:
3 years, 7 months ago by jbroman
Modified:
3 years, 7 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, jbroman+watch_chromium.org, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Keep materialized ArrayBuffer and ImageBitmap objects in SerializedScriptValue. This allows a message to be received in multiple worlds, even though the ArrayBufferContents can only be consumed once. BUG=623355 Review-Url: https://codereview.chromium.org/2878053002 Cr-Commit-Position: refs/heads/master@{#471868} Committed: https://chromium.googlesource.com/chromium/src/+/4bcb9954c02c7dd9c7cb2a0756e4a3002ec66e5d

Patch Set 1 #

Patch Set 2 : for image bitmaps, just use it directly #

Patch Set 3 : and a layout test #

Patch Set 4 : slight refactor #

Total comments: 6

Messages

Total messages: 24 (16 generated)
jbroman
This seems better than crashing, at least. It's still slightly weird (the worlds end up ...
3 years, 7 months ago (2017-05-15 14:56:49 UTC) #14
haraken
https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp File third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp (left): https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp#oldcode167 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp:167: // Transfer image bitmaps. Why can we remove this ...
3 years, 7 months ago (2017-05-15 17:13:33 UTC) #15
haraken
LGTM https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h File third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h (right): https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h#newcode211 third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h:211: return received_->array_buffers; Can we add a dcheck to ...
3 years, 7 months ago (2017-05-15 17:18:44 UTC) #16
jbroman
https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp File third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp (left): https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp#oldcode167 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp:167: // Transfer image bitmaps. On 2017/05/15 at 17:13:33, haraken ...
3 years, 7 months ago (2017-05-15 17:19:26 UTC) #17
jbroman
https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h File third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h (right): https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h#newcode211 third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h:211: return received_->array_buffers; On 2017/05/15 at 17:18:44, haraken wrote: > ...
3 years, 7 months ago (2017-05-15 17:20:51 UTC) #18
haraken
On 2017/05/15 17:20:51, jbroman wrote: > https://codereview.chromium.org/2878053002/diff/60001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h > File > third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h > (right): > > ...
3 years, 7 months ago (2017-05-15 17:23:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2878053002/60001
3 years, 7 months ago (2017-05-15 17:31:05 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 19:37:18 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4bcb9954c02c7dd9c7cb2a0756e4...

Powered by Google App Engine
This is Rietveld 408576698