Re: [w3c/payment-handler] Define requestPermission() behavior. (#180)

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