-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapshot the allowpaymentrequest attribute #2195
Changes from 1 commit
b2e82f1
edcbb1b
fbfc90a
c602fe7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28485,7 +28485,9 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> { | |
has a <span>nested browsing context</span>, the user agent must <span data-x="parse a sandboxing | ||
directive">parse the sandboxing directive</span> using the attribute's value as the | ||
<var>input</var> and the <code>iframe</code> element's <span>nested browsing context</span>'s | ||
<span><code>iframe</code> sandboxing flag set</span> as the output.</p> | ||
<span><code>iframe</code> sandboxing flag set</span> as the output. If the <code>iframe</code> has | ||
an <code data-x="attr-iframe-allowpaymentrequest">allowpaymentrequest</code> attribute, then set | ||
the <var>allowpaymentrequest flag</var>.</p> | ||
|
||
<p>When an <code>iframe</code> element's <code data-x="attr-iframe-sandbox">sandbox</code> | ||
attribute is removed while it has a non-null <span>nested browsing context</span>, the user agent | ||
|
@@ -28615,11 +28617,37 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> { | |
<li><p>If <var>document</var>'s <span data-x="concept-document-bc">browsing context</span> is a | ||
<span>top-level browsing context</span>, then return true.</p></li> | ||
|
||
<li><p>If <var>document</var>'s <span data-x="concept-document-bc">browsing context</span> has a | ||
<span>browsing context container</span> that is an <code>iframe</code> element with an | ||
<var>allowattribute</var> attribute specified, and whose <span>node document</span> is | ||
<span>allowed to use</span> the feature indicated by <var>allowattribute</var>, then return | ||
true.</p></li> | ||
<li> | ||
<p>If <var>allowattribute</var> is <code | ||
data-x="attr-iframe-allowfullscreen">allowfullscreen</code> or <code | ||
data-x="attr-iframe-allowusermedia">allowusermedia</code>, then follow these substeps:</p> | ||
|
||
<ol> | ||
<li><p>If <var>document</var>'s <span data-x="concept-document-bc">browsing context</span> has | ||
a <span>browsing context container</span> that is an <code>iframe</code> element with an | ||
<var>allowattribute</var> attribute specified, and whose <span>node document</span> is | ||
<span>allowed to use</span> the feature indicated by <var>allowattribute</var>, then return | ||
true.</p></li> | ||
</ol> | ||
|
||
<p class="big-issue">This step is legacy behavior that should not be used for new features. If | ||
possible this behavior will go away for the <code | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should remove allowusermedia from this message. I'll add a commit. |
||
data-x="attr-iframe-allowfullscreen">allowfullscreen</code> and <code | ||
data-x="attr-iframe-allowusermedia">allowusermedia</code> attributes as well, see <a | ||
href="https://github.com/whatwg/html/issues/2143#issuecomment-265514585">issue 2143</a>.</p> | ||
</li> | ||
|
||
<li> | ||
<p>Otherwise, follow these substeps:</p> | ||
|
||
<ol> | ||
<li><p>If <var>document</var> has the <var><var>allowattribute</var> flag</var> set, and | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The nested There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wasn't it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess I was misremembering. Some CSS solution is probably good; not sure I'd use those quotes though since we use them to denote Infra lists. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<var>document</var>'s <span data-x="concept-document-bc">browsing context</span> has a | ||
<span>browsing context container</span> that is an <code>iframe</code> element whose | ||
<span>node document</span> is <span>allowed to use</span> the feature indicated by | ||
<var>allowattribute</var>, then return true.</p></li> | ||
</ol> | ||
</li> | ||
|
||
<li><p>Return false.</p></li> | ||
</ol> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I put this here because it was here in 9f6b91c but this doesn't make sense. It needs to be in https://html.spec.whatwg.org/#initialise-the-document-object I think.
edit: and https://html.spec.whatwg.org/#creating-a-new-browsing-context