зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1655469 [wpt PR 24532] - Reland "Do not expose media devices before a successful getUserMedia()", a=testonly
Automatic update from web-platform-tests Reland "Do not expose media devices before a successful getUserMedia()" This reverts commit 69a6001995c51516b403dbde99a2db4c5054ce55. chrome-prefixed URLs are exempted from the getUserMedia() requirement. Original change's description: > Revert "Do not expose media devices before a successful getUserMedia()" > > This reverts commit d64e736aa8c7976b12b33f92472f7950bf0215b9. > > Reason for revert: Caused chrome_all_tast_tests / camera.CCAUISanity.fake failures; e.g. https://ci.chromium.org/p/chrome/builders/ci/chromeos-betty-pi-arc-chrome/7680 > > Original change's description: > > Do not expose media devices before a successful getUserMedia() > > > > This is a spec-compliance change. > > > > This CL also adds some improvements to the blink MediaDevices unit test. > > > > Bug: 1101860 > > Change-Id: If2e7824df3b3dbd3cdb80f4bcf6b5c417d6f0ef2 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2279808 > > Commit-Queue: Guido Urdaneta <guidou@chromium.org> > > Reviewed-by: Harald Alvestrand <hta@chromium.org> > > Cr-Commit-Position: refs/heads/master@{#786253} > > TBR=hta@chromium.org,guidou@chromium.org > > Change-Id: I41b676c7d3e437c06d23f2b46270453f1cc81670 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: 1101860 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288282 > Reviewed-by: Mohsen Izadi <mohsen@chromium.org> > Commit-Queue: Mohsen Izadi <mohsen@chromium.org> > Cr-Commit-Position: refs/heads/master@{#786615} TBR=mohsen@chromium.org,hta@chromium.org,guidou@chromium.org # Not skipping CQ checks because this is a reland. Bug: 1101860 Change-Id: I3fb6d9a620291cda57eb5fe48ce330b45425a5bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2289833 Commit-Queue: Guido Urdaneta <guidou@chromium.org> Reviewed-by: Guido Urdaneta <guidou@chromium.org> Reviewed-by: Harald Alvestrand <hta@chromium.org> Cr-Commit-Position: refs/heads/master@{#791797} -- wpt-commits: e88590918346d8d0d7a4bb768a78fea14ba71203 wpt-pr: 24532
This commit is contained in:
Родитель
042619e462
Коммит
560ef68bf7
|
@ -17,6 +17,8 @@ promise_test(t => promise_rejects_dom(t, "NotFoundError", audio.setSinkId("nonex
|
|||
"setSinkId fails with NotFoundError on made up deviceid");
|
||||
|
||||
promise_test(async t => {
|
||||
const stream = await navigator.mediaDevices.getUserMedia({audio:true});
|
||||
stream.getAudioTracks()[0].stop();
|
||||
const list = await navigator.mediaDevices.enumerateDevices();
|
||||
const outputDevicesList = list.filter(({kind}) => kind == "audiooutput");
|
||||
assert_not_equals(outputDevicesList.length, 0,
|
||||
|
|
|
@ -40,6 +40,8 @@ test(function () {
|
|||
promise_test(async t => {
|
||||
assert_true(navigator.mediaDevices.getSupportedConstraints()["groupId"],
|
||||
"groupId should be supported");
|
||||
const stream = await navigator.mediaDevices.getUserMedia({video:true});
|
||||
stream.getVideoTracks()[0].stop();
|
||||
const devices = await navigator.mediaDevices.enumerateDevices();
|
||||
for (const device of devices) {
|
||||
await navigator.mediaDevices.getUserMedia(
|
||||
|
@ -63,6 +65,8 @@ promise_test(async t => {
|
|||
promise_test(async t => {
|
||||
assert_true(navigator.mediaDevices.getSupportedConstraints()["groupId"],
|
||||
"groupId should be supported");
|
||||
const stream = await navigator.mediaDevices.getUserMedia({audio:true});
|
||||
stream.getAudioTracks()[0].stop();
|
||||
const devices = await navigator.mediaDevices.enumerateDevices();
|
||||
for (const device of devices) {
|
||||
await navigator.mediaDevices.getUserMedia(
|
||||
|
|
|
@ -13,6 +13,8 @@ idl_test(
|
|||
const inputDevices = [];
|
||||
const outputDevices = [];
|
||||
try {
|
||||
const stream = await navigator.mediaDevices.getUserMedia({audio:true, video:true});
|
||||
stream.getTracks().forEach(track => track.stop());
|
||||
const list = await navigator.mediaDevices.enumerateDevices();
|
||||
for (const device of list) {
|
||||
if (device.kind in self) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче