From 1446550cbca924a00a3ceaf8311072ae9104ae0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Thu, 13 Oct 2022 02:57:46 -0700 Subject: [PATCH] Change default value of video to true for getDisplayMedia calls This CL makes sure the default value of video MediaStreamConstraints is false when called by getUserMedia() and true when called by getDisplayMedia() and getDisplayMediaSet(). Spec: https://www.w3.org/TR/screen-capture/#ref-for-dom-displaymediastreamoptions-video-1 Bug: 904831 Change-Id: I28d7f3c7ffb7078108881c99361a6f4849f31081 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3945509 Commit-Queue: Fr Reviewed-by: Elad Alon Cr-Commit-Position: refs/heads/main@{#1058592} --- screen-capture/getdisplaymedia.https.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen-capture/getdisplaymedia.https.html b/screen-capture/getdisplaymedia.https.html index c92a7154ee6728c..1c9eb449f55a514 100644 --- a/screen-capture/getdisplaymedia.https.html +++ b/screen-capture/getdisplaymedia.https.html @@ -59,7 +59,6 @@ {video: true}, {video: true, audio: false}, {audio: false}, - {audio: true}, {}, undefined ].forEach(constraints => promise_test(async t => { @@ -93,6 +92,7 @@ [ {video: true, audio: true}, + {audio: true}, ].forEach(constraints => promise_test(async t => { const stream = await getDisplayMedia(constraints); t.add_cleanup(() => stopTracks(stream));