Skip to content

Commit

Permalink
Make gUM etc. require authenticated origins.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Oct 7, 2014
1 parent c04eb04 commit 9e472bd
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions getusermedia.html
Expand Up @@ -2573,6 +2573,11 @@ <h3>MediaDevices</h3>
<p>Let <var>resultList</var> be an empty list.</p>
</li>

<li>

This comment has been minimized.

Copy link
@annevk

annevk Oct 7, 2014

Note that "entry script" is named "entry settings object" these days. Might be a larger problem with this document though.

<p>If the entry script's origin is not an authenticated origin,
throw a <code>NotSupportedError</code> exception.
</li>

<li>
<p>If this method has been called previously within this
application session, let <var>oldList</var> be the list of
Expand Down Expand Up @@ -2847,7 +2852,8 @@ <h3>MediaDevices Interface Extensions</h3>
</li>

<li>
<p>If <var>requestedMediaTypes</var> is the empty set, let
<p>If the entry script's origin is not an authenticated origin,
or if <var>requestedMediaTypes</var> is the empty set, let
<var>error</var> be a new <code>
<a>MediaStreamError</a>
</code> object whose <code>
Expand Down Expand Up @@ -3271,10 +3277,7 @@ <h2>Implementation Suggestions</h2>
<p class="practicedesc">When permission is requested for a
device, the UA may choose to store that permission, if granted, for later
use by the same origin, so that the user does not need to
grant permission again at a later time. Such storing
<em class="rfc2119">must</em>
only be done when the page is secure (served over HTTPS and
having no mixed content). It is an UA choice whether it
grant permission again at a later time. It is an UA choice whether it
offers functionality to store permission to each device
separately, all devices of a given class, or all devices; the
choice needs to be apparent to the user.</p>
Expand Down Expand Up @@ -3610,6 +3613,13 @@ <h2>Interface Definition</h2>
following steps:</p>

<ol>
<li>
<p>If the entry script's origin is not an authenticated origin,
call the <code>errorCallback</code>, passing it a new
<code>MediaStreamError</code> with name
<code>NotSupportedError</code>, and return.
</li>

<li>let <var>newContraints</var> be the argument to this
function. Each constraint <em class="rfc2119"
title="must">must</em> specify one or more values (or a range of
Expand Down Expand Up @@ -4204,6 +4214,10 @@ <h1>Privacy and Security Considerations</h1>
also allows the manipulation of audio output devices (speakers and
headphones).</p>

<p>To prevent passive and active network attackers getting access to the
user's MediaStream, it is only made available to authenticated origins.
[[MIXEDCONTENT]].</p>

<p>Without authorization (to the “drive-by web”), it offers the ability
to tell how many devices there are of each class. The identifiers for
the devices are designed to not be useful for a fingerprint that can
Expand Down

3 comments on commit 9e472bd

@annevk
Copy link

@annevk annevk commented on 9e472bd Oct 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darobin how can we make that [[MIXEDCONTENT]] link work with respec?

@annevk
Copy link

@annevk annevk commented on 9e472bd Oct 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jan-ivar apparently it's [[mixed-content]]. From @darobin: 'if you open up any ReSpec document, in the top right menu there's a search option. If you search for "mixed content" you'll see all the available references in specref'

@jan-ivar
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah thanks will fix!

Please sign in to comment.