[w3c/payment-handler] Does PaymentManager need to be exposed to Worker scope? (#340)

The `PaymentManager` interface currently has `[Exposed=(Window,Worker)]` in the [spec]. I wonder if the `Worker` scope is necessary.

Currently `PaymentManager` is only ever used through the service worker registration's `paymentManager` instance. Chrome's current [implementation] doesn't use `[Exposed]`, which defaults to `Window`.

Digging through history, it seems that @romandev and @ianbjacobs added the window and worker scopes in #199 to allow the `static` method `PaymentManager.requestPermission` to be used in script. But @rsolomakhin removed `requestPermission` in #277.

I propse that we remove the `Worker` scope. Does this make sense?

[spec]: https://w3c.github.io/payment-handler/#paymentmanager-interface
[implementation]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/payments/payment_manager.idl?rcl=58a812ee3d9dc3c439647819d43a906c170ea29c

-- 
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/340

Received on Thursday, 18 July 2019 21:56:24 UTC