New issue
Advanced search Search tips

Issue 615332 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Add use counter for mixed old/new-style constraints

Project Member Reported by hta@chromium.org, May 27 2016

Issue description

MediaConstraintsImpl.cpp:

    WebMediaConstraints standardForm = convertConstraintsToWeb(constraintsIn);
    if (constraintsIn.hasOptional() || constraintsIn.hasMandatory()) {
        if (!standardForm.isEmpty()) {
            errorState.throwTypeError("Malformed constraint: Cannot use both optional/mandatory and specific or advanced constraints.");
            return WebMediaConstraints();
        }

There should be an use counter. We have had one bug (#614716) where the user mixed those constraint forms and was surprised.
 

Comment 1 by hta@chromium.org, Jun 1 2016

Status: Started (was: Untriaged)

Comment 2 by hta@chromium.org, Oct 5 2016

Status: Fixed (was: Started)
Was fixed by https://codereview.chromium.org/2020063002

Usage stats is at https://www.chromestatus.com/metrics/feature/timeline/popularity/1389

Sign in to add a comment