PaymentHandler: Fix [Exposed] extended attribute in PaymentInstruments.
This CL is fixing the [Exposed=ServiceWorker] extended attribute in
PaymentInstruments. It was added in https://crrev.com/2775343002 but
it just seems to be inserted accidentally during copy-n-paste.
So, we should correct the extended attribute as per the spec[1].
This is also fixing a web-platform-test (interfaces.https.any.html).
[1] https://w3c.github.io/payment-handler/#paymentinstruments-interface
Bug: none
Change-Id: I502be6b6c1f61e5eb7277c8b52e246d2e1afc4c8
Reviewed-on: https://chromium-review.googlesource.com/669462
Commit-Queue: Jinho Bang <jinho.bang@samsung.com>
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#502631}
diff --git a/interfaces/payment-handler.idl b/interfaces/payment-handler.idl
index dcb536a..88d3b1c 100644
--- a/interfaces/payment-handler.idl
+++ b/interfaces/payment-handler.idl
@@ -5,6 +5,8 @@
readonly attribute PaymentInstruments instruments;
[Exposed=Window] static Promise<PermissionState> requestPermission();
};
+[SecureContext,
+ Exposed=(Window,Worker)]
interface PaymentInstruments {
Promise<boolean> delete(DOMString instrumentKey);
Promise<PaymentInstrument> get(DOMString instrumentKey);