Bug 1643320 [wpt PR 23981] - [PTZ] Reject with NotSupportedError in applyConstraints...
commitc2f3be7fbe1161adf29726859af3e0e1fc9ccb4b
authorFrancois Beaufort <beaufort.francois@gmail.com>
Wed, 10 Jun 2020 11:31:08 +0000 (10 11:31 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Jun 2020 09:18:51 +0000 (12 09:18 +0000)
treee516b527888295da9643dbab19b413270aefd9bd
parent056ce34ebaf5600c6e0f1e910076e94873a476d2
Bug 1643320 [wpt PR 23981] - [PTZ] Reject with NotSupportedError in applyConstraints if no permission, a=testonly

Automatic update from web-platform-tests
[PTZ] Reject with NotSupportedError in applyConstraints if no permission

This CL makes sure applyConstraints is rejected with NotSupportedError,
not NotAllowedError anymore. This specific error allowed web developers
to know if a camera was supporting PTZ, even though they didn't ask for
it.

Spec: https://github.com/w3c/mediacapture-image/issues/223

Bug: 934063
Change-Id: I20a09740313446586dabf5f64b920cc1646112f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2230487
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/master@{#775426}

--

wpt-commits: 395a37da2fe40b39fc635da109502124622de030
wpt-pr: 23981
testing/web-platform/tests/mediacapture-image/MediaStreamTrack-applyConstraints-getSettings.html