Bug 1805497 [wpt PR 37482] - Reject getDisplayMedia calls without user activation...
commit847f200633437036e9dadac1385e642ab32e557c
authorFrançois Beaufort <beaufort.francois@gmail.com>
Thu, 22 Dec 2022 10:11:07 +0000 (22 10:11 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 4 Jan 2023 11:50:24 +0000 (4 11:50 +0000)
tree3cce499c53bb4724a7dc442e8e51aa3f750c79c3
parentbe86cd7b4c032bbb378efa081e1adbbf21500d87
Bug 1805497 [wpt PR 37482] - Reject getDisplayMedia calls without user activation, a=testonly

Automatic update from web-platform-tests
Reject getDisplayMedia calls without user activation

This CL makes sure getDisplayMedia() returned promise reject with
InvalidStateError when called without user activation.
Note that speculation rules tests are updated as well[1].

[1] https://github.com/WICG/nav-speculation/issues/225

Intent to remove: https://groups.google.com/a/chromium.org/g/blink-dev/c/YGmuAVOqftI

Bug: 1198918
Change-Id: I530761d95e6db412582d0f19c0170803516c33f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4096797
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Elad Alon <eladalon@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1086033}

--

wpt-commits: fa93f70273eb7f9a8210a4decc7c4aaf79b206eb
wpt-pr: 37482
testing/web-platform/tests/mediacapture-streams/MediaStreamTrack-iframe-audio-transfer.https.html
testing/web-platform/tests/mediacapture-streams/MediaStreamTrack-iframe-transfer.https.html
testing/web-platform/tests/speculation-rules/prerender/resources/screen-capture.https.html
testing/web-platform/tests/speculation-rules/prerender/restriction-screen-capture.https.html