From 9f6b91cb14a0f497ee5b3e7118ee65e687eaea78 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren The High Resolution Time specification provides the HTMLIFrameElement : HTMLElement {
has a nested browsing context, the user agent must parse the sandboxing directive using the attribute's value as the
input and the
requestFullscreen()
- iframe
element's nested browsing context's
- iframe
sandboxing flag set as the output. If the iframe
has
- an allowfullscreen
attribute, set the allow
- fullscreen flag; if the iframe
has an allowusermedia
attribute, set the allow user media
- flag.iframe
sandboxing flag set as the output.
When an iframe
element's sandbox
attribute is removed while it has a nested browsing context, the user agent must
@@ -28248,7 +28243,7 @@ interface HTMLIFrameElement : HTMLElement {
-
The allowfullscreen
attribute is a
boolean attribute. When specified, it indicates that Document
objects in
@@ -28275,14 +28270,34 @@ interface HTMLIFrameElement : HTMLElement {
-
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 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:
If document has no browsing context, + then return false.
If document's browsing context has + no browsing context container, then return true.
If document's browsing context has a
+ browsing context container that is an iframe
element with an
+ allowattribute attribute specified, and whose node document is
+ allowed to use the feature indicated by allowattribute, then return
+ true.
Return false.
The iframe
element supports dimension attributes for cases where the
@@ -79895,25 +79910,6 @@ callback FrameRequestCallback = void (DOMHighResTimeStamp
-
This flag prevents content from using the requestFullscreen()
method.
This flag prevents content from using the getUserMedia()
method.
document.domain
browsing context flagWhen the user agent is to parse a sandboxing directive, given a string input, a sandboxing flag set output, and - optionally an allow fullscreen flag and allow user media flag, it must run the following steps:
+When the user agent is to parse a sandboxing directive, given a string + input, a sandboxing flag set output, it must run the following + steps:
The sandboxed storage area URLs flag.
-The sandboxed fullscreen browsing context flag, unless the allow fullscreen flag was passed to the parse a sandboxing - directive algorithm.
The sandboxed user media browsing context flag, unless the allow user media flag was passed to the parse a sandboxing - directive algorithm.
The sandboxed document.domain
browsing
context flag.
To implement the sandboxing for a Document
object document,
- run these steps:
Populate document's active sandboxing flag set with the union of the - flags that are present in the following sandboxing flag - sets:
- -If document's browsing context is a - top-level browsing context, then: the flags set on the browsing - context's popup sandboxing flag set.
If document's browsing context is a
- nested browsing context, then: the flags set on the browsing
- context's iframe
sandboxing flag set.
If document's browsing context is a - nested browsing context, then: the flags set on the browsing - context's parent browsing context's active document's - active sandboxing flag set.
The flags set on document's resource's forced sandboxing flag - set, if it has one.
If document's browsing context is a + top-level browsing context, then: the flags set on the browsing + context's popup sandboxing flag set.
If the active sandboxing flag set of - document's browsing context or any of its - ancestor browsing contexts (if any) have the - sandboxed fullscreen browsing context flag set, then abort these steps.
If document's browsing context is a
+ nested browsing context, then: the flags set on the browsing context's
+ iframe
sandboxing flag set.
If document's browsing context has a
- browsing context container that is an iframe
element with an allowfullscreen
attribute specified, and whose
- node document has the fullscreen enabled flag set, then set
- document's fullscreen enabled flag.
If document's browsing context is a + nested browsing context, then: the flags set on the browsing context's + parent browsing context's active document's active sandboxing + flag set.
If document's browsing context has a
- browsing context container that is an iframe
element with an allowusermedia
attribute specified, and whose
- node document has the user media enabled flag set, then set
- document's user media enabled flag.
The flags set on document's resource's forced sandboxing flag set, + if it has one.