Re: [w3c/payment-handler] Proposal: Remove requestPermission() (#246)

> BTW, `instruments.set()` is exposed to ServiceWorker as well as Window. So, if it is called in SW context during the SW running, what's expected behavior?

1. If `instruments.set()` has never been called before, then reject the call in Service Worker with error message `NotAllowedError: The first call to instruments.set() should be from Window context with a User Gesture.`
1. If `instruments.set()` has been called from Window before and user gave their consent, then `instruments.set()` should work in the Service Worker as well.

-- 
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/246#issuecomment-361949289

Received on Wednesday, 31 January 2018 14:32:58 UTC