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

Issue 2541683002: Make ImageBitmap transfers work in cases that require serialization (Closed)

Created:
4 years ago by Justin Novosad
Modified:
4 years ago
Reviewers:
haraken
CC:
chromium-reviews, kinuko+worker_chromium.org, jsbell+serviceworker_chromium.org, serviceworker-reviews, shimazu+serviceworker_chromium.org, sof, eae+blinkwatch, kinuko+serviceworker, shimazu+worker_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, michaeln, jbroman+watch_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, tzik, blink-worker-reviews_chromium.org, rwlbuis, xidachen
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ImageBitmap transfers work in cases that require serialization Transferring an ImageBitmap object, until now, relied on sharing a RefPtr with the destination realm in order to pass the pixel data. This mechanism does not work for all post message use cases. Some cases require full serialization. This change fixes the all the postMessage interfaces that use the PostMessage extended attribute in the IDL by employing the same strategy that was used for ArrayBuffer: to fallback to the structured clone code path, and neuter the source object. This change does not fix window.postMessage BUG=667910 Committed: https://crrev.com/6df1a49e882a63a088bbb2f62fe5a3b30c6d0633 Cr-Commit-Position: refs/heads/master@{#436774}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -27 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/canvas-messagechannel-imagebitmap-transfer.html View 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp View 2 chunks +13 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_methods.py View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl View 2 chunks +15 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 3 chunks +16 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MessagePort.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
Justin Novosad
PTAL
4 years ago (2016-11-29 22:47:22 UTC) #2
Justin Novosad
haraken: friendly ping.
4 years ago (2016-12-05 16:18:20 UTC) #7
haraken
LGTM I'm just curious but do you know why canTransferArrayBuffersAndImageBitmaps returns true only in dedicated ...
4 years ago (2016-12-06 00:22:10 UTC) #8
nhiroki
On 2016/12/06 00:22:10, haraken wrote: > I'm just curious but do you know why canTransferArrayBuffersAndImageBitmaps ...
4 years ago (2016-12-06 02:06:13 UTC) #9
haraken
On 2016/12/06 02:06:13, nhiroki wrote: > On 2016/12/06 00:22:10, haraken wrote: > > I'm just ...
4 years ago (2016-12-06 02:09:49 UTC) #10
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/2541683002/1
4 years ago (2016-12-06 21:10:49 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-07 00:27:13 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-07 00:29:12 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6df1a49e882a63a088bbb2f62fe5a3b30c6d0633
Cr-Commit-Position: refs/heads/master@{#436774}

Powered by Google App Engine
This is Rietveld 408576698