Skip to content

Commit

Permalink
Bug 1785088 [wpt PR 35487] - Reject transfers of streams which are no…
Browse files Browse the repository at this point in the history
…t of display capture type, a=testonly

Automatic update from web-platform-tests
Reject transfers of streams which are not of display capture type

Bug: 1288839
Change-Id: I045bce9708cc5102c293b728849d2e931715cf4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3826297
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Tony Herre <toprice@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Palak Agarwal <agpalak@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1038406}

--

wpt-commits: 11d23c0435a13050c1aa5fe0246d70b20e8d02f3
wpt-pr: 35487
  • Loading branch information
palak8669 authored and moz-wptsync-bot committed Sep 4, 2022
1 parent 9cfff4e commit 50ba420
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
const worker = new Worker(workerUrl);
window.URL.revokeObjectURL(workerUrl);
await setMediaPermission("granted", ["camera"]);
const stream = await navigator.mediaDevices.getUserMedia({video: true});
const stream = await navigator.mediaDevices.getDisplayMedia({video: true});
const track = stream.getVideoTracks()[0];
const result = new Promise((resolve, reject) => {
worker.onmessage = (e) => {
Expand Down

0 comments on commit 50ba420

Please sign in to comment.