Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.idl

Issue 2697123003: Use ExecutionContext instead of Document in PaymentRequest constructor. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/payments/PaymentRequest.idl
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
index 943b325dde16a05e7514fb3e70429ce84f677553..9c0e76d7aecb618a693214d2c4fb200a20e6ba87 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
@@ -8,14 +8,14 @@
[
RuntimeEnabled=PaymentRequest,
Constructor(sequence<PaymentMethodData> methodData, PaymentDetails details, optional PaymentOptions options),
- ConstructorCallWith=Document,
+ ConstructorCallWith=ScriptState,
RaisesException=Constructor,
ActiveScriptWrappable,
DependentLifetime,
] interface PaymentRequest : EventTarget {
- [CallWith=ScriptState] Promise<PaymentResponse> show();
- [CallWith=ScriptState] Promise<void> abort();
- [CallWith=ScriptState, RuntimeEnabled=CanMakePayment] Promise<boolean> canMakePayment();
+ Promise<PaymentResponse> show();
+ Promise<void> abort();
+ [RuntimeEnabled=CanMakePayment] Promise<boolean> canMakePayment();
[ImplementedAs=getShippingAddress] readonly attribute PaymentAddress? shippingAddress;
readonly attribute DOMString? shippingOption;

Powered by Google App Engine
This is Rietveld 408576698