Bug 1773564 [wpt PR 34364] - MSE-in-Workers: srcObject part 5: Conditionally fail...
commit9a1dbbf8869df75b3ae48d9ed659baf27bb234b5
authorMatt Wolenetz <wolenetz@chromium.org>
Fri, 10 Jun 2022 09:54:09 +0000 (10 09:54 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 13 Jun 2022 10:02:50 +0000 (13 10:02 +0000)
tree32c71aca39c38a04dbbf02abd584137861d0be7b
parent347f992ec3b2260d49e9d2458240c3593250081b
Bug 1773564 [wpt PR 34364] - MSE-in-Workers: srcObject part 5: Conditionally fail worker objectURL, a=testonly

Automatic update from web-platform-tests
MSE-in-Workers: srcObject part 5: Conditionally fail worker objectURL

If the MediaSourceInWorkersUsingHandle feature is enabled, this change
prevents successful ability of obtaining an objectURL that would succeed
in loading a worker-owned MediaSource.

It changes the wpt tests to use handle for attachment and verifies
expected new behavior of getHandle and that worker objectURL attachment
fails (these tests run on experimental builds of Chromium with
currently-experimental MediaSourceInWorkersUsingHandle feature enabled,
just like the currently-experimental MediaSourceInWorkers feature.)

References:
Full prototype CL for the parts 1-4 that have already landed:
    https://chromium-review.googlesource.com/c/chromium/src/+/3515334
MSE spec issue:
    https://github.com/w3c/media-source/issues/175
MSE spec feature updates switching from worker MSE attachment via
  object URL to attachment via srcObject MediaSourceHandle:
  * https://github.com/w3c/media-source/pull/305
  * further clarifications in discussion at
    https://github.com/w3c/media-source/pull/306#issuecomment-1144180822

BUG=878133

Change-Id: I60ddca79ee0f95c87b6d84e4f44ad9c283f359a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3698231
Commit-Queue: Matthew Wolenetz <wolenetz@chromium.org>
Auto-Submit: Matthew Wolenetz <wolenetz@chromium.org>
Reviewed-by: Will Cassella <cassew@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1012712}

--

wpt-commits: 3fec1e386568b78c390acee2307b5a07b75e3d30
wpt-pr: 34364
14 files changed:
testing/web-platform/tests/media-source/dedicated-worker/mediasource-message-util.js
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-detach-element.html
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-detach-element.js
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-duration.html
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-duration.js
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-get-objecturl.js [new file with mode: 0644]
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-handle.html [copied from testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-objecturl.html with 71% similarity]
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-handle.js [new file with mode: 0644]
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-objecturl.html
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-objecturl.js
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-play-terminate-worker.html
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-play.html
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-play.js
testing/web-platform/tests/media-source/dedicated-worker/mediasource-worker-util.js