diff --git a/index.html b/index.html index 54fee5d8..cea8a6ea 100644 --- a/index.html +++ b/index.html @@ -152,7 +152,7 @@
A user agent MUST behave as described in this specification in order to be considered conformant. In this specification, user agent means a Web - browser or other interactive user agent as defined in [[!HTML5]]. + browser or other interactive user agent as defined in [[!HTML51]].
User agents MAY implement algorithms given in this @@ -185,10 +185,11 @@
TypeError
, JSON.stringify, and JSON.parse are
@@ -354,15 +355,9 @@ SecurityError
.
- There is an open issue about requiring
- a top-level browsing context for using PaymentRequest
. Requiring one
- is a mitigation for a user being tricked into thinking a trusted site is asking for
- payment when in fact an untrusted iframe is asking for payment. The problem is some iframes may
- have a legitimate reason to request payment.
SecurityError
.
details
does not contain a value for total
, then throw a
@@ -1110,6 +1105,38 @@ + There are some circumstances where a cross-origin iframe wants to make a payment + request. A cross-origin iframe needs explicit permission from the embedding page to invoke + the payment request API. +
+
+ The HTMLIFrameElement is extended with an allowpaymentrequest
+ content attribue. allowpaymentrequest
is a boolean attribute.
+ When specified, it indicates that scripts in the iframe element's browsing context are
+ allowed to make payment requests (if it's not blocked for other reasons, e.g.
+ there is another ancestor iframe without this attribute set).
+
The iframe DOM interface is extended as follows:
++ partial interface HTMLIFrameElement { + attribute boolean allowPaymentRequest; + }; ++
allowPaymentRequest
allowPaymentRequest
IDL attribute MUST reflect the
+ allowpaymentrequest
content attribute.
+