Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

add the allowusermedia attr to iframe #1087

Merged
merged 3 commits into from
Dec 1, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sections/attributes.include
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
<td>Whether to allow the <{iframe}>'s <a>browsing context</a> to use the <a><code>PaymentRequest</code></a> interface to make payment requests.</td>
<td><a>Boolean attribute</a></td>
</tr>
<tr>
<th><{iframe/allowusermedia}></th>
<td><{iframe}></td>
<td>Whether to allow the <{iframe}>'s <a>browsing context</a> to use {{Element/getUserMedia()}}.</td>
<td><a>Boolean attribute</a></td>
</tr>
<tr>
<th><code>alt</code></th>
<td><{area}>; <{img}>; <{input}></td>
Expand Down
7 changes: 7 additions & 0 deletions sections/semantics-embedded-content.include
Original file line number Diff line number Diff line change
Expand Up @@ -3596,6 +3596,7 @@ My &lt;img src="heart.png" alt="heart"&gt; breaks.
<dd><{iframe/allowpaymentrequest}> - Whether the <code>iframe</code>'s
contents are allowed to use the <a><code>PaymentRequest</code></a> interface
to make payment requests</dd>
<dd><{iframe/allowusermedia}> - Whether to allow the <{iframe}>'s <a>browsing context</a> to use {{Element/getUserMedia()}}</dd>
<dd><code>width</code> - Horizontal dimension</dd>
<dd><code>height</code> - Vertical dimension</dd>
<dd><code>referrerpolicy</code> - <a>Referrer policy</a> for <a>fetches</a> initiated by the element</dd>
Expand All @@ -3615,6 +3616,7 @@ My &lt;img src="heart.png" alt="heart"&gt; breaks.
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
attribute boolean allowFullscreen;
attribute boolean allowPaymentRequest;
attribute boolean allowUserMedia;
attribute DOMString width;
attribute DOMString height;
attribute DOMString referrerPolicy;
Expand Down Expand Up @@ -4035,6 +4037,8 @@ My &lt;img src="heart.png" alt="heart"&gt; breaks.
are to be <a>allowed to use</a> the <a><code>PaymentRequest</code></a> interface
to make payment requests.

The <dfn element-attr for="iframe"><code>allowusermedia</code></dfn> attribute is a <a>boolean attribute</a>. When specified, it indicates that {{Document}} objects in the <{iframe}> element's <a>browsing context</a> are to be <a>allowed to use</a> {{Element/getUserMedia()}} (if it's not blocked for other reasons, e.g. there is another ancestor <{iframe}> without this attribute set).

Copy link
Collaborator

Choose a reason for hiding this comment

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

please break up this line to 80-100 characters per line

To determine whether a {{Document}} object <var>document</var> is
<dfn id="allowed-to-use">allowed to use</dfn> the feature indicated by attribute name
<var>allowattribute</var>, run these steps:
Expand Down Expand Up @@ -4097,6 +4101,9 @@ My &lt;img src="heart.png" alt="heart"&gt; breaks.
The <dfn attribute for="HTMLIFrameElement"><code>allowPaymentRequest</code></dfn> IDL
attribute must <a>reflect</a> the <code>allowpaymentrequest</code> content attribute.

The <dfn attribute for="HTMLIFrameElement"><code>allowUserMedia</code></dfn> IDL
attribute must <a>reflect</a> the <code>allowusermedia</code> content attribute.

The <dfn attribute for="HTMLIFrameElement"><code>referrerPolicy</code></dfn> IDL attribute must
<a>reflect</a> the <code>referrerpolicy</code> content attribute, <a>limited to only known values</a>.

Expand Down
2 changes: 2 additions & 0 deletions single-page.bs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ url: https://www.w3.org/TR/touch-events/#idl-def-TouchEvent; type: interface; sp
text: Touch
url: https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen; type: method; for: Element; spec: fullscreen;
text: requestFullscreen()
url: https://www.w3.org/TR/mediacapture-streams/#dom-mediadevices-getusermedia(); type: method; for: Element; spec: mediacapture-streams;
text: getUserMedia()
url: https://www.w3.org/TR/CSS21/ui.html#system-colors; type: dfn; spec: css21
text: CSS2 System Colors
url: https://www.w3.org/TR/CSS21/box.html#value-def-margin-width; type: value; spec: css21; for: margin-left;
Expand Down