Skip to content

Commit

Permalink
add 'payment' feature
Browse files Browse the repository at this point in the history
Controls access to PaymentRequest interface and defaults to enabled for
top-level browsing contexts. Nested contexts are default off; parent
browsing context must explicitly enable the feature.

See #18.
  • Loading branch information
igrigorik committed Aug 16, 2016
1 parent 9e59702 commit 23c8364
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,15 @@ <h2>Features</h2>
<td>`null`</td>
<td>Controls access to [Notification interface].</td>
</tr>
<tr>
<td>
<a>payment</a>
</td>
<td>`self`</td>
<td>`null`</td>
<td>`null`</td>
<td>Controls access to [PaymentRequest interface].</td>
</tr>
<tr>
<td>
<a>usermedia</a>
Expand Down Expand Up @@ -544,9 +553,26 @@ <h2><dfn>`notifications`</dfn></h2>
[Constructor(DOMString title, optional NotificationOptions options),
Feature=notifications]
interface Notification : EventTarget {};</pre>
<p>The <a>notifications</a> keyword controls whether the
[Notification interface] ([[!NOTIFICATIONS]]) is [exposed] for [current
global object].</p>
<p>The <a>notifications</a> keyword controls whether the [Notification
interface] ([[!NOTIFICATIONS]]) is [exposed] for [current global
object].</p>
<ol>
<li>The default <a>enable policy</a> is `self` for [top-level
browsing context], and `null` for [nested browsing context].
</li>
<li>The default <a>disable policy</a> is `null`.
</li>
</ol>
</section>
<section>
<h2><dfn>`payment`</dfn></h2>
<pre class="idl">
[Constructor(sequence&lt;PaymentMethodData&gt; methodData, PaymentDetails details, optional PaymentOptions options),
SecureContext, Feature=payment]
interface PaymentRequest : EventTarget {};</pre>
<p>The <a>payment</a> keyword controls whether the [PaymentRequest
interface] ([[!PAYMENT-REQUEST]]) is [exposed] for [current global
object].</p>
<ol>
<li>The default <a>enable policy</a> is `self` for [top-level
browsing context], and `null` for [nested browsing context].
Expand Down Expand Up @@ -961,3 +987,4 @@ <h2>Privacy and Security</h2>
[NavigatorUserMedia interface]: https://w3c.github.io/mediacapture-main/#navigatorusermedia
[RTCPeerConnection interface]: http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interface
[Notification interface]: https://www.w3.org/TR/notifications/#notification
[PaymentRequest interface]: https://www.w3.org/TR/payment-request/#paymentrequest-interface

0 comments on commit 23c8364

Please sign in to comment.