Commit 81b98c2d authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

Upgrade TransferableStreams feature to experimental

Set the status of the "TransferableStreams" feature to "experimental". This
means that it is enabled by default for layout tests, and behind the
"experimental web platform features" in the browser.

Remove the virtual test suite for the feature.

BUG=894838

Change-Id: I0b1efdbbcaf08448e7578eea2ef859cea1930cbc
Reviewed-on: https://chromium-review.googlesource.com/c/1355299
Commit-Queue: Adam Rice <ricea@chromium.org>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613037}
parent 8b2b44ca
......@@ -1263,6 +1263,7 @@
},
{
name: "TransferableStreams",
status: "experimental",
},
// This is conditionally set if the platform supports translation.
{
......
......@@ -1017,11 +1017,6 @@
"base": "http/tests/webaudio/autoplay-crossorigin.html",
"args": ["--disable-site-isolation-trials"]
},
{
"prefix": "transferable-streams",
"base": "http/tests/streams/transferable",
"args": ["--enable-blink-features=TransferableStreams"]
},
{
"prefix": "streaming-preload",
"base": "http/tests/fetch",
......
This is a testharness.js-based test.
PASS service-worker
FAIL serviceWorker.controller.postMessage should be able to transfer a ReadableStream Failed to execute 'postMessage' on 'ServiceWorker': Value at index 0 does not have a transferable type.
FAIL postMessage in a service worker should be able to transfer ReadableStream promise_test: Unhandled rejection with value: "Failed to execute 'postMessage' on 'Client': Value at index 0 does not have a transferable type."
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL worker.postMessage should be able to transfer a ReadableStream Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not have a transferable type.
FAIL postMessage in a worker should be able to transfer a ReadableStream promise_test: Unhandled rejection with value: "Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not have a transferable type."
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL window.postMessage should be able to transfer a TransformStream Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
FAIL a TransformStream with a locked writable should not be transferable assert_throws: postMessage should throw function "() => postMessage(ts, '*', [ts])" threw object "TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25
FAIL a TransformStream with a locked readable should not be transferable assert_throws: postMessage should throw function "() => postMessage(ts, '*', [ts])" threw object "TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25
FAIL a TransformStream with both sides locked should not be transferable assert_throws: postMessage should throw function "() => postMessage(ts, '*', [ts])" threw object "TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25
FAIL piping through transferred transforms should work Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
Harness: the test ran to completion.
CONSOLE ERROR: line 43: Uncaught (in promise) Error: assert_array_equals: there should be no ports in the event lengths differ, expected 0 got 1
CONSOLE ERROR: line 43: Uncaught (in promise) Error: assert_array_equals: there should be no ports in the event lengths differ, expected 0 got 1
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = assert_array_equals: there should be no ports in the event lengths differ, expected 0 got 1
FAIL window.postMessage should be able to transfer a ReadableStream Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
FAIL port.postMessage should be able to transfer a ReadableStream Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not have a transferable type.
FAIL the same ReadableStream posted multiple times should arrive together Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
FAIL transfer to and from an iframe should work promise_test: Unhandled rejection with value: object "TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type."
Harness: the test ran to completion.
CONSOLE ERROR: line 5: Uncaught TypeError: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': Value at index 0 does not have a transferable type.
This is a testharness.js-based test.
FAIL worker.postMessage should be able to transfer a ReadableStream Failed to execute 'postMessage' on 'Worker': Value at index 0 does not have a transferable type.
FAIL postMessage in a worker should be able to transfer a ReadableStream promise_test: Unhandled rejection with value: "error in worker"
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL window.postMessage should be able to transfer a WritableStream Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
FAIL a locked WritableStream should not be transferable assert_throws: postMessage should throw function "() => postMessage(ws, '*', [ws])" threw object "TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25
FAIL window.postMessage should be able to transfer a {readable, writable} pair Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS service-worker
PASS serviceWorker.controller.postMessage should be able to transfer a ReadableStream
PASS postMessage in a service worker should be able to transfer ReadableStream
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS worker.postMessage should be able to transfer a ReadableStream
PASS postMessage in a worker should be able to transfer a ReadableStream
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS window.postMessage should be able to transfer a TransformStream
PASS a TransformStream with a locked writable should not be transferable
PASS a TransformStream with a locked readable should not be transferable
PASS a TransformStream with both sides locked should not be transferable
PASS piping through transferred transforms should work
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS window.postMessage should be able to transfer a ReadableStream
PASS port.postMessage should be able to transfer a ReadableStream
PASS the same ReadableStream posted multiple times should arrive together
PASS transfer to and from an iframe should work
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS worker.postMessage should be able to transfer a ReadableStream
PASS postMessage in a worker should be able to transfer a ReadableStream
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS window.postMessage should be able to transfer a WritableStream
PASS a locked WritableStream should not be transferable
PASS window.postMessage should be able to transfer a {readable, writable} pair
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment