Skip to content

Commit

Permalink
Remove the allowusermedia iframe attribute
Browse files Browse the repository at this point in the history
Fixes #4090.
  • Loading branch information
clelland authored and domenic committed Oct 26, 2018
1 parent 47fc099 commit 95e72ce
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

<ul class="brief">
<li><dfn data-x-href="https://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-mediastream"><code>MediaStream</code></dfn> interface</li>
<li><dfn data-x="dom-MediaDevices-getUserMedia" data-x-href="https://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia"><code>getUserMedia()</code></dfn> method</li>
</ul>

</dd>
Expand Down Expand Up @@ -29481,7 +29480,6 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></code></pre>
<dd><code data-x="attr-iframe-allow">allow</code></dd>
<dd><code data-x="attr-iframe-allowfullscreen">allowfullscreen</code></dd>
<dd><code data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code></dd>
<dd><code data-x="attr-iframe-allowusermedia">allowusermedia</code></dd>
<dd><code data-x="attr-dim-width">width</code></dd>
<dd><code data-x="attr-dim-height">height</code></dd>
<dd><code data-x="attr-iframe-referrerpolicy">referrerpolicy</code></dd>
Expand All @@ -29497,7 +29495,6 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-iframe-allow">allow</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-iframe-allowFullscreen">allowFullscreen</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-iframe-allowPaymentRequest">allowPaymentRequest</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-iframe-allowUserMedia">allowUserMedia</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-dim-width">width</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-dim-height">height</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-iframe-referrerPolicy">referrerPolicy</span>;
Expand Down Expand Up @@ -30053,20 +30050,10 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
data-x="process-feature-policy-attributes">Process feature policy attributes</span> algorithm.
<ref spec="FEATUREPOLICY">

<p>The <dfn><code data-x="attr-iframe-allowusermedia">allowusermedia</code></dfn> attribute is a
<span>boolean attribute</span>. When specified, it indicates that <code>Document</code> objects in
the <code>iframe</code> element's <span>browsing context</span> will be initialized with a <span
data-x="concept-document-feature-policy">feature policy</span> which allows the "<code
data-x="">camera</code>" and "<code data-x="">microphone</code>" features to be used to call
<code data-x="dom-MediaDevices-getUserMedia">getUserMedia()</code> from any <span>origin</span>.
This is enforced by the <span data-x="process-feature-policy-attributes">Process feature policy
attributes</span> algorithm. <ref spec="FEATUREPOLICY">

<p class="note">None of these attributes, <code data-x="attr-iframe-allow">allow</code>,
<code data-x="attr-iframe-allowfullscreen">allowfullscreen</code>, <code
data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code> or <code
data-x="attr-iframe-allowusermedia">allowusermedia</code>, can grant access to a feature in a
<span>nested browsing context</span> if the <code>iframe</code> element's <span>node
<code data-x="attr-iframe-allowfullscreen">allowfullscreen</code> or <code
data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code>, can grant access to a feature
in a <span>nested browsing context</span> if the <code>iframe</code> element's <span>node
document</span> is not already allowed to use that feature.</p>

<div w-nodev>
Expand All @@ -30092,10 +30079,9 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
<p class="warning">Because they only influence the <span
data-x="concept-document-feature-policy">feature policy</span> of the <span>nested browsing
context</span>'s <span>active document</span>, the <code data-x="attr-iframe-allow">allow</code>,
<code data-x="attr-iframe-allowfullscreen">allowfullscreen</code>, <code
data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code> and <code
data-x="attr-iframe-allowusermedia">allowusermedia</code> attributes only take effect when the
<span>nested browsing context</span> of the <code>iframe</code> is <span
<code data-x="attr-iframe-allowfullscreen">allowfullscreen</code> and <code
data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code> attributes only take effect
when the <span>nested browsing context</span> of the <code>iframe</code> is <span
data-x="navigate">navigated</span>. Adding or removing them has no effect on an already-loaded
document.</p>

Expand Down Expand Up @@ -30150,10 +30136,6 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
attribute must <span>reflect</span> the <code
data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code> content attribute.</p>

<p>The <dfn><code data-x="dom-iframe-allowUserMedia">allowUserMedia</code></dfn> IDL attribute
must <span>reflect</span> the <code data-x="attr-iframe-allowusermedia">allowusermedia</code>
content attribute.</p>

<p>The <dfn><code data-x="dom-iframe-referrerPolicy">referrerPolicy</code></dfn> IDL attribute
must <span>reflect</span> the <code data-x="attr-iframe-referrerpolicy">referrerpolicy</code>
content attribute, <span>limited to only known values</span>.</p>
Expand Down Expand Up @@ -117079,7 +117061,6 @@ interface <dfn>External</dfn> {
<code data-x="attr-iframe-allow">allow</code>;
<code data-x="attr-iframe-allowfullscreen">allowfullscreen</code>;
<code data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code>;
<code data-x="attr-iframe-allowusermedia">allowusermedia</code>;
<code data-x="attr-dim-width">width</code>;
<code data-x="attr-dim-height">height</code>;
<code data-x="attr-iframe-referrerpolicy">referrerpolicy</code></td>
Expand Down Expand Up @@ -118536,11 +118517,6 @@ interface <dfn>External</dfn> {
<td> <code data-x="attr-iframe-allowpaymentrequest">iframe</code>
<td> Whether the <code>iframe</code>'s contents are allowed to use the <code>PaymentRequest</code> interface to make payment requests
<td> <span>Boolean attribute</span>
<tr>
<th> <code data-x="">allowusermedia</code>
<td> <code data-x="attr-iframe-allowusermedia">iframe</code>
<td> Whether to allow the <code>iframe</code>'s contents to use <code data-x="dom-MediaDevices-getUserMedia">getUserMedia()</code>
<td> <span>Boolean attribute</span>
<tr>
<th> <code data-x="">alt</code>
<td> <code data-x="attr-area-alt">area</code>;
Expand Down

0 comments on commit 95e72ce

Please sign in to comment.