From 9399092ff8b46977ea617f7fc82dea2c3ea98001 Mon Sep 17 00:00:00 2001 From: siusin Date: Tue, 28 Nov 2017 16:45:45 +0800 Subject: [PATCH 1/2] add allowusermedia attr to iframe --- sections/attributes.include | 6 ++++++ sections/semantics-embedded-content.include | 7 +++++++ single-page.bs | 2 ++ 3 files changed, 15 insertions(+) diff --git a/sections/attributes.include b/sections/attributes.include index f7de62a722..8bdea9728e 100644 --- a/sections/attributes.include +++ b/sections/attributes.include @@ -55,6 +55,12 @@ Whether to allow the <{iframe}>'s browsing context to use the PaymentRequest interface to make payment requests. Boolean attribute + + <{iframe/allowusermedia}> + <{iframe}> + Whether to allow the <{iframe}>'s browsing context to use {{Element/getUserMedia()}}. + Boolean attribute + alt <{area}>; <{img}>; <{input}> diff --git a/sections/semantics-embedded-content.include b/sections/semantics-embedded-content.include index d62a2cf76a..c22f7dbf85 100644 --- a/sections/semantics-embedded-content.include +++ b/sections/semantics-embedded-content.include @@ -3596,6 +3596,7 @@ My <img src="heart.png" alt="heart"> breaks.
<{iframe/allowpaymentrequest}> - Whether the iframe's contents are allowed to use the PaymentRequest interface to make payment requests
+
<{iframe/allowusermedia}> - Whether to allow the <{iframe}>'s browsing context to use {{Element/getUserMedia()}}
width - Horizontal dimension
height - Vertical dimension
referrerpolicy - Referrer policy for fetches initiated by the element
@@ -3615,6 +3616,7 @@ My <img src="heart.png" alt="heart"> 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; @@ -4035,6 +4037,8 @@ My <img src="heart.png" alt="heart"> breaks. are to be allowed to use the PaymentRequest interface to make payment requests. + The allowusermedia attribute is a boolean attribute. When specified, it indicates that {{Document}} objects in the <{iframe}> element's browsing context are to be allowed to use {{Element/getUserMedia()}} (if it's not blocked for other reasons, e.g. there is another ancestor <{iframe}> without this attribute set). + To determine whether a {{Document}} object document is allowed to use the feature indicated by attribute name allowattribute, run these steps: @@ -4097,6 +4101,9 @@ My <img src="heart.png" alt="heart"> breaks. The allowPaymentRequest IDL attribute must reflect the allowpaymentrequest content attribute. + The allowUserMedia IDL + attribute must reflect the allowusermedia content attribute. + The referrerPolicy IDL attribute must reflect the referrerpolicy content attribute, limited to only known values. diff --git a/single-page.bs b/single-page.bs index 8666aa2dd7..f8d9ca722b 100644 --- a/single-page.bs +++ b/single-page.bs @@ -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; From c83e26081e1e1c2219ec29b8a65264aa46cfae4d Mon Sep 17 00:00:00 2001 From: siusin Date: Fri, 1 Dec 2017 00:07:28 +0800 Subject: [PATCH 2/2] minor fixes --- sections/changes.include | 2 ++ sections/semantics-embedded-content.include | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sections/changes.include b/sections/changes.include index af46b121fb..51f2dcc497 100644 --- a/sections/changes.include +++ b/sections/changes.include @@ -7,6 +7,8 @@

Changes since HTML 5.2

+
add the allowusermedia attribute to iframe
+
Fixed Issue 778
Update the preload Link type and add the as attribute
Fixed Issue 1044
diff --git a/sections/semantics-embedded-content.include b/sections/semantics-embedded-content.include index c22f7dbf85..c7216cc15f 100644 --- a/sections/semantics-embedded-content.include +++ b/sections/semantics-embedded-content.include @@ -4037,7 +4037,11 @@ My <img src="heart.png" alt="heart"> breaks. are to be allowed to use the PaymentRequest interface to make payment requests. - The allowusermedia attribute is a boolean attribute. When specified, it indicates that {{Document}} objects in the <{iframe}> element's browsing context are to be allowed to use {{Element/getUserMedia()}} (if it's not blocked for other reasons, e.g. there is another ancestor <{iframe}> without this attribute set). + The allowusermedia attribute + is a boolean attribute. When specified, it indicates that {{Document}} objects + in the <{iframe}> element's browsing context are to be allowed to + use {{Element/getUserMedia()}} (if it's not blocked for other reasons, e.g. there + is another ancestor <{iframe}> without this attribute set). To determine whether a {{Document}} object document is allowed to use the feature indicated by attribute name