- From: Rouslan Solomakhin <notifications@github.com>
- Date: Wed, 31 May 2017 06:47:57 -0700
- To: w3c/payment-handler <payment-handler@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 31 May 2017 13:48:58 UTC
@romandev What changes do you plan? From what I understand, the spec is correct in omitting the `?`. The `?` in `clients.openWindow()` is used for resolving the promise with `null` in case of mismatched origin. Our behavior is different, however. If the origin is mismatched in `PaymentRequestEvent.openWindow()`, then the promise should be rejected with `SecurityError` instead. Since `PaymentRequestEvent.openWindow` does not have a possibility of resolving the promise with `null`, then the `?` should not be used. Correct? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/payment-handler/issues/163#issuecomment-305191829
Received on Wednesday, 31 May 2017 13:48:58 UTC