-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OverconstrainedError extends DOMException + algo fixes #746
Conversation
@henbos Regarding question in Thursday's meeting, |
It seems |
@saschanaz Can we return a base class interface in a WebIDL JS callback and have the following still work? navigator.mediaDevices.getUserMedia({video: {width: {min: 9999}}}, () => {}, e => {
console.log(e.constraint); // width
}); I've been working too much with dictionaries where this would be a problem. |
Yes, it should work. A working example is |
Co-authored-by: Dominique Hazael-Massieux <[email protected]>
Co-authored-by: Dominique Hazael-Massieux <[email protected]>
Co-authored-by: Dominique Hazael-Massieux <[email protected]>
Co-authored-by: Dominique Hazael-Massieux <[email protected]>
This change removes the message and name members from the data for the OverconstrainedError interface, per the spec change at w3c/mediacapture-main#746, which redefined OverconstrainedError as as extending DOMException (which has message and name members that OverconstrainedError inherits).
This change removes the message and name members from the data for the OverconstrainedError interface, per the spec change at w3c/mediacapture-main#746, which redefined OverconstrainedError as as extending DOMException (which has message and name members that OverconstrainedError inherits).
Fixes #568.
I made the
constraint
argument always present and""
in cases where the constraint name is either filtered out or undetermined. This matches Safari and Firefox at least (I wasn't able to provoke the absence of a constraint in Chrome).I also fixed some bugs in the algorithms around
failedConstraint
in the process.Preview | Diff