4 years, 10 months ago
(2015-06-13 22:57:38 UTC)
#2
Hi,
Please review
Mike West
What is the consent model for this feature? Are you working with felt@, et al. ...
4 years, 10 months ago
(2015-06-15 08:09:46 UTC)
#3
What is the consent model for this feature? Are you working with felt@, et al.
to come up with a reasonable permission request? Or will we just be exposing the
available device IDs?
Guido Urdaneta
On 2015/06/15 08:09:46, Mike West wrote: > What is the consent model for this feature? ...
4 years, 10 months ago
(2015-06-15 08:52:34 UTC)
#4
On 2015/06/15 08:09:46, Mike West wrote:
> What is the consent model for this feature? Are you working with felt@, et al.
> to come up with a reasonable permission request? Or will we just be exposing
the
> available device IDs?
The permission model we are using is the one that is already in place for
mediastreams,
which is the same that is being used for enumerating devices.
MediaStreamTrack.getSources() and getMediaDevices(), which are being superseded
by enumerateDevices().
The chromium-side implementation for this verifies that mediastreams permissions
are given before proceeding.
If this is not the case, then chromium refuses to perform the operation and the
promise returned by setSinkId() will get rejected with a SecurityError.
See https://codereview.chromium.org/1184473002/ (I just added you as reviewer)
implements the permissions checking.
The idea to reuse mediastream permissions is that this feature will be used
mainly in combination with mediastreams and enumerateDevices and having a single
permission model for all makes it simple for users and for the initial
implementation.
Now, output devices, device enumerations and mediastreams can be seen as
separate things which may have different permission models. Thus, we also have a
bug to better define the permission model/UI for these. See crbug.com/498675.
Mike West
On 2015/06/15 at 08:52:34, guidou wrote: > On 2015/06/15 08:09:46, Mike West wrote: > > ...
4 years, 10 months ago
(2015-06-15 10:47:31 UTC)
#5
On 2015/06/15 at 08:52:34, guidou wrote:
> On 2015/06/15 08:09:46, Mike West wrote:
> > What is the consent model for this feature? Are you working with felt@, et
al.
> > to come up with a reasonable permission request? Or will we just be exposing
the
> > available device IDs?
>
> The permission model we are using is the one that is already in place for
mediastreams,
> which is the same that is being used for enumerating devices.
MediaStreamTrack.getSources() and getMediaDevices(), which are being superseded
by enumerateDevices().
> The chromium-side implementation for this verifies that mediastreams
permissions are given before proceeding.
> If this is not the case, then chromium refuses to perform the operation and
the promise returned by setSinkId() will get rejected with a SecurityError.
> See https://codereview.chromium.org/1184473002/ (I just added you as reviewer)
implements the permissions checking.
>
> The idea to reuse mediastream permissions is that this feature will be used
mainly in combination with mediastreams and enumerateDevices and having a single
permission model for all makes it simple for users and for the initial
implementation.
> Now, output devices, device enumerations and mediastreams can be seen as
separate things which may have different permission models. Thus, we also have a
bug to better define the permission model/UI for these. See crbug.com/498675.
Ok. Assuming this will go through privacy/security review before launching, LGTM
to experiment with the implementation. I've added some relevant folks/labels to
that bug.
Thanks!
Guido Urdaneta
On 2015/06/15 10:47:31, Mike West wrote: > On 2015/06/15 at 08:52:34, guidou wrote: > > ...
4 years, 10 months ago
(2015-06-15 10:59:12 UTC)
#6
On 2015/06/15 10:47:31, Mike West wrote:
> On 2015/06/15 at 08:52:34, guidou wrote:
> > On 2015/06/15 08:09:46, Mike West wrote:
> > > What is the consent model for this feature? Are you working with felt@, et
> al.
> > > to come up with a reasonable permission request? Or will we just be
exposing
> the
> > > available device IDs?
> >
> > The permission model we are using is the one that is already in place for
> mediastreams,
> > which is the same that is being used for enumerating devices.
> MediaStreamTrack.getSources() and getMediaDevices(), which are being
superseded
> by enumerateDevices().
> > The chromium-side implementation for this verifies that mediastreams
> permissions are given before proceeding.
> > If this is not the case, then chromium refuses to perform the operation and
> the promise returned by setSinkId() will get rejected with a SecurityError.
> > See https://codereview.chromium.org/1184473002/ (I just added you as
reviewer)
> implements the permissions checking.
> >
> > The idea to reuse mediastream permissions is that this feature will be used
> mainly in combination with mediastreams and enumerateDevices and having a
single
> permission model for all makes it simple for users and for the initial
> implementation.
> > Now, output devices, device enumerations and mediastreams can be seen as
> separate things which may have different permission models. Thus, we also have
a
> bug to better define the permission model/UI for these. See crbug.com/498675.
>
> Ok. Assuming this will go through privacy/security review before launching,
LGTM
> to experiment with the implementation. I've added some relevant folks/labels
to
> that bug.
>
> Thanks!
Thanks!. Note that I gave you the wrong CL for the permissions checks. It was
https://codereview.chromium.org/1171953002/, which you already reviewed.
Guido Urdaneta
The CQ bit was checked by guidou@chromium.org
4 years, 10 months ago
(2015-06-15 10:59:28 UTC)
#7
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66594)
4 years, 10 months ago
(2015-06-15 12:28:05 UTC)
#10
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66622)
4 years, 10 months ago
(2015-06-15 16:24:44 UTC)
#15
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66686)
4 years, 10 months ago
(2015-06-15 21:09:59 UTC)
#19
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66812)
4 years, 10 months ago
(2015-06-16 11:36:18 UTC)
#23
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/66800)
4 years, 10 months ago
(2015-06-16 15:13:54 UTC)
#28
Issue 1182243005: Add sinkId/setSinkId() extension to HTMLMediaElement.
(Closed)
Created 4 years, 10 months ago by Guido Urdaneta
Modified 4 years, 10 months ago
Reviewers: Mike West, hta - Chromium, Peter Beverloo, tommi (sloooow) - chröme
Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Comments: 2