Bug 1797681 [wpt PR 36685] - [Conditional Focus] Throw setFocusBehavior after getDisp...
commit53cc1fd1d0f63b2a20dccd39fc0f14335248bc60
authorFrançois Beaufort <beaufort.francois@gmail.com>
Thu, 10 Nov 2022 16:01:26 +0000 (10 16:01 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 11 Nov 2022 12:34:15 +0000 (11 12:34 +0000)
tree26614350400523a89fc7b8d09f357f1c48eb21d6
parent7bda1959d6de4d20e8e40a369af7b7e9924f4935
Bug 1797681 [wpt PR 36685] - [Conditional Focus] Throw setFocusBehavior after getDisplayMedia rejects, a=testonly

Automatic update from web-platform-tests
[Conditional Focus] Throw setFocusBehavior after getDisplayMedia rejects

This CL makes sure CaptureController.setFocusBehavior() throws
InvalidStateError after getDisplayMedia promise rejects.

Spec: https://github.com/w3c/mediacapture-screen-share/issues/252
Demo: https://capture-controller.glitch.me/
Bug: 1215480
Change-Id: Ia2ceeb12ae9bf8c8fee77888eefc37f229e9e8e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3984527
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Elad Alon <eladalon@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1068624}

--

wpt-commits: e5ff94da6e3ec88733b154a21bbbea4c73aa6eb4
wpt-pr: 36685
testing/web-platform/tests/screen-capture/getdisplaymedia-capture-controller.https.window.js