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

Issue 2804653003: Image Capture: make sure applyConstraints() only works for ImageCapture constraints (Closed)

Created:
3 years, 8 months ago by mcasas
Modified:
3 years, 8 months ago
Reviewers:
Guido Urdaneta, foolip
CC:
chromium-reviews, haraken, blink-reviews, tommyw+watchlist_chromium.org, mcasas+imagecapture_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Image Capture: make sure applyConstraints() only works for ImageCapture constraints This CL: - makes sure MediaStreamTrack::applyConstraints() is rejected if non image-capture related constraints are passed; (this follows the Spec e.g. in [1], " If the constraints cannot be applied, the promise is rejected"). - generally cleans up MediaStreamTrack::applyConstraints() moving part of the TODO()s to Image Capture so that they are in the same place (facilitates later reviews). - derives to clearMediaTrackConstraints() if the constraint set is empty, after spec issue somehow clarified it LayoutTests updated/extended. [1] https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints#Return_value BUG=700607, 708723 Review-Url: https://codereview.chromium.org/2804653003 Cr-Commit-Position: refs/heads/master@{#462531} Committed: https://chromium.googlesource.com/chromium/src/+/1d5b6a1cd0258c12363b53f0d382471141463abe

Patch Set 1 #

Patch Set 2 : LayoutTests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -16 lines) Patch
M third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 4 chunks +39 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 chunk +12 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (11 generated)
mcasas
guidou@ PTAL foolip@ FYI/PTAL -- this CL unblocks releasing applyConstraints() for Image Capture while rejecting ...
3 years, 8 months ago (2017-04-05 21:31:46 UTC) #6
Guido Urdaneta
lgtm
3 years, 8 months ago (2017-04-06 16:14:02 UTC) #10
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/2804653003/20001
3 years, 8 months ago (2017-04-06 16:43:24 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 17:41:42 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1d5b6a1cd0258c12363b53f0d382...

Powered by Google App Engine
This is Rietveld 408576698