Image Capture: don't show |torch| in capabilities if not supported |
|||||||
Issue descriptionIf torch (meaning: flash continuously on) is not supported, currently MediaStreamTrack.getCapabilities().torch says false; instead it should just not show it up (since the result is a dictionary of supported capabilities).
,
Apr 19 2017
,
Apr 19 2017
Verified in Chromium 60.0.3074.0. Thank you Miguel!
,
Apr 19 2017
,
Apr 19 2017
,
Apr 19 2017
Your change meets the bar and is auto-approved for M59. Please go ahead and merge the CL to branch 3071 manually. Please contact milestone owner if you have questions. Owners: amineer@(Android), cmasso@(iOS), gkihumba@(ChromeOS), Abdul Syed@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 19 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/89bfdc09da805adc9bb85bfcb4e38e62bb3d2833 commit 89bfdc09da805adc9bb85bfcb4e38e62bb3d2833 Author: Miguel Casas-Sanchez <mcasas@chromium.org> Date: Wed Apr 19 22:32:59 2017 ImageCapture: don't list |torch| in Capabilities if not supported Currently MediaStreamTrack.getCapabilities() returns torch : false when |torch| is not supported; this CL aligns with the other dictionary members behaviour, which is to not show up in the Capabilities dictionary when not supported. BUG= 712719 Review-Url: https://codereview.chromium.org/2827693003 Cr-Commit-Position: refs/heads/master@{#465373} (cherry picked from commit 31b31da235decd6c593745e98f77b55ff9270cb4) Review-Url: https://codereview.chromium.org/2830943002 . Cr-Commit-Position: refs/branch-heads/3071@{#69} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} [modify] https://crrev.com/89bfdc09da805adc9bb85bfcb4e38e62bb3d2833/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
,
Apr 19 2017
verified per #3 |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by bugdroid1@chromium.org
, Apr 18 2017