Bug 1814902 [wpt PR 38347] - Reject getDisplayMedia calls without user activation...
commit429497d7c1b6007018eb6fa5292f472edad77442
authorFrançois Beaufort <beaufort.francois@gmail.com>
Sat, 4 Feb 2023 09:20:09 +0000 (4 09:20 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 4 Feb 2023 20:25:00 +0000 (4 20:25 +0000)
treec993733ee519f563dbcf33b61741f13fc064037f
parent8f95d887162031abe075360c22c96356c0d7fe78
Bug 1814902 [wpt PR 38347] - 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. This is now gated
by an experimental blink feature as it was revered several times before.

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: I9517012e76478b108d74bff432b71095ac7ba4d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4219093
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Elad Alon <eladalon@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1101098}

--

wpt-commits: ac2ff07ac0041f03bc8c8f8481cb5729b8086b25
wpt-pr: 38347
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/permissions-policy/payment-extension-allowed-by-permissions-policy-attribute.https.sub.html
testing/web-platform/tests/permissions-policy/resources/permissions-policy.js
testing/web-platform/tests/speculation-rules/prerender/resources/screen-capture.https.html
testing/web-platform/tests/speculation-rules/prerender/restriction-screen-capture.https.html