New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 618465 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 727977


Show other hotlists

Hotlists containing this issue:
media-router-PE


Sign in to add a comment

tabCapture API needs "constraints" definition relaxed to support getUserMedia API changes.

Project Member Reported by m...@chromium.org, Jun 8 2016

Issue description

The tabCapture API's IDL was defined around the getUserMedia API's IDL back in 2011. Since then, the use of "mandatory" and "optional" objects has not only been deprecated, but support for them is lacking and breaking. Thus, we need to revisit the tabCapture IDL definition and adjust for the current state-of-the-world.

Link to the bad stuff in the IDL: https://cs.chromium.org/chromium/src/chrome/common/extensions/api/tab_capture.idl?rcl=0&l=30

Proposal: Delete the MediaStreamConstraint and CaptureOptions definitions in the IDL, and have the functions take an "amiguous" object named "constraints" (instead of CaptureOptions). The documentation would mention that this object will be interpreted according to the currently-supported getUserMedia() implementation (with link to W3C spec). This solution should be backwards-compatible with all existing users of this extension API.

Note: Along with the IDL change, code in chrome/browser/extensions/api/tab_capture/... will need to change around this. The tabCapture API impl does look for and read/remove some options before passing the "constraints" options on to getUserMedia().
 

Comment 1 by m...@chromium.org, May 10 2017

Owner: kmarshall@chromium.org
Status: Assigned (was: Available)

Comment 2 by m...@chromium.org, May 31 2017

Blocking: 727977

Comment 3 by m...@chromium.org, Feb 1 2018

Components: Platform>Extensions>API
Labels: TabCapture

Comment 4 by m...@chromium.org, Feb 1 2018

Components: -Blink>GetUserMedia>Tab
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment