Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Issue 2877273002: Image Capture: reject setOptions()/applyConstraints() if any argument is unsupported (Closed)

Created:
3 years, 7 months ago by mcasas
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews, haraken, mcasas+imagecapture_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Image Capture: reject setOptions()/applyConstraints() if any argument is unsupported This CL adds rejection of applyConstraints()/setOptions() if the control value is out of ranges or unsupported, e.g. trying to set zoom to 1000 where the capability range is {1.0 - 10.0}. LayoutTests for each of those methods are added. BUG=718765 Review-Url: https://codereview.chromium.org/2877273002 Cr-Commit-Position: refs/heads/master@{#472143} Committed: https://chromium.googlesource.com/chromium/src/+/64b5e1fad912daf7c311c7f984db673bcae7713c

Patch Set 1 : cleanup #

Total comments: 12

Patch Set 2 : reillyg@ comments and rebase #

Total comments: 6

Patch Set 3 : second round of comments from reillyg@ #

Patch Set 4 : reverted renaming bc it breaks patching #

Messages

Total messages: 34 (23 generated)
mcasas
reillyg@ PTAL sizeable CL but mostly mechanical
3 years, 7 months ago (2017-05-15 16:19:01 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2877273002/diff/60001/third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html File third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html (right): https://codereview.chromium.org/2877273002/diff/60001/third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html#newcode46 third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html:46: (capabilities) => { return { redEyeReduction : true }; ...
3 years, 7 months ago (2017-05-15 16:50:49 UTC) #12
mcasas
ptal https://codereview.chromium.org/2877273002/diff/60001/third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html File third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html (right): https://codereview.chromium.org/2877273002/diff/60001/third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html#newcode46 third_party/WebKit/LayoutTests/imagecapture/setOptions-reject.html:46: (capabilities) => { return { redEyeReduction : true ...
3 years, 7 months ago (2017-05-15 18:18:49 UTC) #13
Reilly Grant (use Gerrit)
lgtm with nits https://codereview.chromium.org/2877273002/diff/80001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html File third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html (right): https://codereview.chromium.org/2877273002/diff/80001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html#newcode51 third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html:51: capabilities => ({ whiteBalanceMode : "manual" ...
3 years, 7 months ago (2017-05-15 18:27:49 UTC) #14
mcasas
https://codereview.chromium.org/2877273002/diff/80001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html File third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html (right): https://codereview.chromium.org/2877273002/diff/80001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html#newcode51 third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-reject.html:51: capabilities => ({ whiteBalanceMode : "manual" }), On 2017/05/15 ...
3 years, 7 months ago (2017-05-15 19:57:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2877273002/140001
3 years, 7 months ago (2017-05-15 22:19:58 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/445338)
3 years, 7 months ago (2017-05-16 02:03:15 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2877273002/140001
3 years, 7 months ago (2017-05-16 02:53:42 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/445461)
3 years, 7 months ago (2017-05-16 06:46:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2877273002/140001
3 years, 7 months ago (2017-05-16 14:46:56 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 17:21:32 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/64b5e1fad912daf7c311c7f984db...

Powered by Google App Engine
This is Rietveld 408576698