From b2e82f1692f8ddcd5d91f815c9a1c34d1c967d0d Mon Sep 17 00:00:00 2001
From: Simon Pieters
iframe
sandboxing flag set as the output. If the iframe
has
+ an allowpaymentrequest
attribute, then set
+ the allowpaymentrequest flag.
When an iframe
element's sandbox
attribute is removed while it has a non-null nested browsing context, the user agent
@@ -28615,11 +28617,37 @@ interface HTMLIFrameElement : HTMLElement {
If document's browsing context is a top-level browsing context, 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.
If allowattribute is allowfullscreen
or allowusermedia
, then follow these substeps:
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.
This step is legacy behavior that should not be used for new features. If
+ possible this behavior will go away for the allowfullscreen
and allowusermedia
attributes as well, see issue 2143.
Otherwise, follow these substeps:
+ +If document has the allowattribute flag set, and
+ document's browsing context has a
+ browsing context container that is an iframe
element whose
+ node document is allowed to use the feature indicated by
+ allowattribute, then return true.
Return false.
iframe
element's nested browsing context's
- iframe
sandboxing flag set as the output. If the iframe
has
- an allowpaymentrequest
attribute, then set
- the allowpaymentrequest flag.
+ iframe
sandboxing flag set as the output.
When an iframe
element's sandbox
attribute is removed while it has a non-null nested browsing context, the user agent
@@ -28651,6 +28649,16 @@ interface HTMLIFrameElement : HTMLElement {
Return false.
To set the allow* flags for a Document
document means to
+ run these steps:
If document's browsing context has a
+ browsing context container that is an iframe
element with an allowpaymentrequest
attribute specified, then
+ set the allowpaymentrequest flag on document.
Implement the sandboxing for document.
Set the allow* flags for document.
Set settingsObject's execution ready flag.
Implement the sandboxing for the Document
.
Set the allow* flags for the Document
.
Set settingsObject's execution ready flag.
If allowattribute is allowfullscreen
or allowusermedia
, then follow these substeps:
If document's browsing context has @@ -28655,9 +28654,16 @@ interface HTMLIFrameElement : HTMLElement {
If document's browsing context has a
- browsing context container that is an iframe
element with an browsing context container that is an
iframe
element, let
+ iframe be that element. Otherwise, abort these steps.
If iframe has an allowpaymentrequest
attribute specified, then
set the allowpaymentrequest flag on document.
If iframe has an allowusermedia
attribute specified, then set the
+ allowusermedia flag on document.
This step is legacy behavior that should not be used for new features. If
- possible this behavior will go away for the allowfullscreen
and allowusermedia
attributes as well, see This step is legacy behavior for the allowfullscreen
attribute that should not be used
+ for new features. If possible this will be removed, see issue 2143.