- From: Dave Longley <notifications@github.com>
- Date: Wed, 21 Jun 2017 07:23:46 -0700
- To: w3c/payment-handler <payment-handler@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 21 June 2017 14:24:43 UTC
dlongley commented on this pull request.
> interface PaymentManager {
[SameObject] readonly attribute PaymentInstruments instruments;
[SameObject] readonly attribute PaymentWallets wallets;
- Promise<boolean> requestPermission();
+ [Exposed=Window] static Promise<PermisionState> requestPermission();
I believe that the `[SecureContext]` extended attribute applies to the entire interface (exposing it only in secure contexts) and the `[Exposed=Window]` is a further restriction, specifically, on `requestPermission` to cause it to only be exposed when the global context is `Window` (as opposed to in a `Worker`, for example -- where it won't be accessible).
--
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/pull/180#discussion_r123263073
Received on Wednesday, 21 June 2017 14:24:43 UTC