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

Issue 2860303002: Run SharedArrayBuffer WPT tests in virtual/sharedarraybuffer testsuite (Closed)

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

Description

Run SharedArrayBuffer WPT tests in virtual/sharedarraybuffer testsuite This also fixes an issue in postMessage when CanTransferArrayBuffersAndImageBitmaps is false (e.g. MessagePorts). Previously, we would remove all transferables from the transferables list, serialize that, then transfer the transferables separately. This prevents an exception from being thrown when a SharedArrayBuffer is in the transferables list. BUG=chromium:716320 Review-Url: https://codereview.chromium.org/2860303002 Cr-Commit-Position: refs/heads/master@{#470154} Committed: https://chromium.googlesource.com/chromium/src/+/43a78b926f0d6bdbaadbd804351cac6021415c97

Patch Set 1 #

Total comments: 2

Patch Set 2 : merge HEAD #

Patch Set 3 : Add test case with intermingled AB+SAB #

Total comments: 1

Patch Set 4 : add comment to ExtractNonSharedArrayBuffers and merge HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -5 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-sharedarraybuffer-transfer.html View 1 2 2 chunks +43 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/README.txt View 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/identity-not-preserved-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/no-transferring-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/serialization-via-history-expected.txt View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-domain-success.sub-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-serviceworker-failure.https-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-similar-but-cross-origin-success.sub-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/external/wpt/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-simple-success-expected.txt View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/workers/worker-sharedarraybuffer-transfer-expected.txt View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.cpp View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (20 generated)
binji
3 years, 7 months ago (2017-05-05 00:39:43 UTC) #2
haraken
https://codereview.chromium.org/2860303002/diff/1/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp File third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp (right): https://codereview.chromium.org/2860303002/diff/1/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp#newcode458 third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp:458: array_buffers.end() - non_shared_begin); Do we have a test case ...
3 years, 7 months ago (2017-05-05 00:52:53 UTC) #9
binji
https://codereview.chromium.org/2860303002/diff/1/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp File third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp (right): https://codereview.chromium.org/2860303002/diff/1/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp#newcode458 third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp:458: array_buffers.end() - non_shared_begin); On 2017/05/05 at 00:52:52, haraken wrote: ...
3 years, 7 months ago (2017-05-05 18:53:39 UTC) #12
haraken
LGTM with a question. https://codereview.chromium.org/2860303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.cpp File third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.cpp (right): https://codereview.chromium.org/2860303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.cpp#newcode457 third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValue.cpp:457: array_buffers.erase(non_shared_begin - array_buffers.begin(), Would you ...
3 years, 7 months ago (2017-05-06 14:56:34 UTC) #17
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/2860303002/60001
3 years, 7 months ago (2017-05-08 17:56:31 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/288207)
3 years, 7 months ago (2017-05-08 22:52:00 UTC) #22
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/2860303002/60001
3 years, 7 months ago (2017-05-09 01:22:41 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 03:40:58 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/43a78b926f0d6bdbaadbd804351c...

Powered by Google App Engine
This is Rietveld 408576698