diff --git a/index.html b/index.html index 044b2124..6a635bd4 100644 --- a/index.html +++ b/index.html @@ -1043,7 +1043,7 @@

  • If |document| is not [=Document/fully active=], then return a promise rejected - with an {{"AbortError"}} {{DOMException}}. + with an {{"InvalidStateError"}} {{DOMException}}.
  • If |document|'s [=Document/visibility state=] is not `"visible"`, then return a promise rejected with an {{"AbortError"}} @@ -1331,9 +1331,17 @@

    1. Close down the user interface.
    2. +
    3. Set |request|.{{PaymentRequest/[[state]]}} to + "[=PaymentRequest/closed=]". +
    4. Set |request|'s payment-relevant browsing context's payment request is showing boolean to false.
    5. +
    6. + Queue a task on the user interaction task source + to [=reject=] |acceptPromise| with an {{"AbortError"}} + {{DOMException}}. +

  • @@ -2488,7 +2496,7 @@

  • If |document| is not [=Document/fully active=], then return a promise - rejected with an {{"AbortError"}} {{DOMException}}. + rejected with an {{"InvalidStateError"}} {{DOMException}}.
  • If |response|.{{PaymentResponse/[[complete]]}} is true, return a promise rejected with an {{"InvalidStateError"}} @@ -2589,9 +2597,17 @@

    1. Close down the user interface.
    2. +
    3. Set |request|.{{PaymentRequest/[[state]]}} to + "[=PaymentRequest/closed=]". +
    4. Set |request|'s payment-relevant browsing context's payment request is showing boolean to false.
    5. +
    6. + Queue a task on the user interaction task source + to [=reject=] |retryPromise| with an {{"AbortError"}} + {{DOMException}}. +

  • Finally, when |retryPromise| settles, set @@ -2920,6 +2936,11 @@

  • Set |request|'s payment-relevant browsing context's payment request is showing boolean to false.
  • +
  • + Queue a task on the user interaction task source + to [=reject=] |promise| with an {{"AbortError"}} + {{DOMException}}. +
  • Otherwise: @@ -3504,6 +3525,13 @@

    "[=PaymentRequest/created=]", then return a promise rejected with an {{"InvalidStateError"}} {{DOMException}}.

  • +
  • Let |document| be |request|'s [=relevant global object=]'s + [=associated `Document`=]. +
  • +
  • If |document| is not [=Document/fully active=], then return + a promise rejected with an {{"InvalidStateError"}} + {{DOMException}}. +
  • Optionally, at the top-level browsing context's discretion, return a promise rejected with a {{"NotAllowedError"}} {{DOMException}}. @@ -4430,11 +4458,11 @@

    data models used by existing payment methods, prescribing data specifics in this API would limit its usefulness. The {{PaymentResponse/details}} member carries data from the payment - handler, whether Web-based (as defined by the [[[web-based-payment-handler]]]) - or proprietary. The [=user agent=] MUST NOT support payment handlers - unless they include adequate user consent mechanisms (such as - awareness of parties to the transaction and mechanisms for - demonstrating the intention to share data). + handler, whether Web-based (as defined by the + [[[web-based-payment-handler]]]) or proprietary. The [=user agent=] + MUST NOT support payment handlers unless they include adequate user + consent mechanisms (such as awareness of parties to the transaction + and mechanisms for demonstrating the intention to share data).

    The user agent MUST NOT share the values of the