Changeset 246014 in webkit
- Timestamp:
- Jun 1, 2019, 9:19:40 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/Modules/applepay/PaymentCoordinatorClient.h (modified) (2 diffs)
-
WebCore/loader/EmptyClients.cpp (modified) (1 diff)
-
WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
WebKitLegacy/mac/WebCoreSupport/WebPaymentCoordinatorClient.h (modified) (1 diff)
-
WebKitLegacy/mac/WebCoreSupport/WebPaymentCoordinatorClient.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246002 r246014 1 2019-06-01 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Every PaymentCoordinator client should explicitly decide whether they support unrestricted Apple Pay 4 https://bugs.webkit.org/show_bug.cgi?id=198449 5 <rdar://problem/51038583> 6 7 Reviewed by Wenson Hsieh. 8 9 Rather than having a default return value of true for 10 PaymentCoordinatorClient::supportsUnrestrictedApplePay, make it pure virtual to force each 11 subclass to implement an override and explicitly choose an appropriate return value. 12 13 The only two clients that did not explicitly override were the empty client and 14 WebKitLegacy's client, and Apple Pay was never enabled in those clients, so there is no 15 change in behavior. 16 17 * Modules/applepay/PaymentCoordinatorClient.h: 18 (WebCore::PaymentCoordinatorClient::isAlwaysOnLoggingAllowed const): 19 (WebCore::PaymentCoordinatorClient::supportsUnrestrictedApplePay const): Deleted. 20 * loader/EmptyClients.cpp: 21 1 22 2019-05-31 Youenn Fablet <youenn@apple.com> 2 23 -
trunk/Source/WebCore/Modules/applepay/PaymentCoordinatorClient.h
r244092 r246014 63 63 virtual void cancelPaymentSession() = 0; 64 64 virtual void paymentCoordinatorDestroyed() = 0; 65 virtual bool supportsUnrestrictedApplePay() const = 0; 65 66 66 67 virtual bool isMockPaymentCoordinator() const { return false; } … … 68 69 69 70 virtual bool isAlwaysOnLoggingAllowed() const { return false; } 70 virtual bool supportsUnrestrictedApplePay() const { return true; }71 71 72 72 protected: -
trunk/Source/WebCore/loader/EmptyClients.cpp
r245460 r246014 333 333 void abortPaymentSession() final { } 334 334 void paymentCoordinatorDestroyed() final { } 335 bool supportsUnrestrictedApplePay() const final { return false; } 335 336 }; 336 337 -
trunk/Source/WebKitLegacy/mac/ChangeLog
r245875 r246014 1 2019-06-01 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Every PaymentCoordinator client should explicitly decide whether they support unrestricted Apple Pay 4 https://bugs.webkit.org/show_bug.cgi?id=198449 5 <rdar://problem/51038583> 6 7 Reviewed by Wenson Hsieh. 8 9 * WebCoreSupport/WebPaymentCoordinatorClient.h: 10 * WebCoreSupport/WebPaymentCoordinatorClient.mm: 11 (WebPaymentCoordinatorClient::supportsUnrestrictedApplePay const): 12 1 13 2019-05-29 Don Olmstead <don.olmstead@sony.com> 2 14 -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebPaymentCoordinatorClient.h
r242681 r246014 50 50 void cancelPaymentSession() override; 51 51 void paymentCoordinatorDestroyed() override; 52 bool supportsUnrestrictedApplePay() const override; 52 53 }; 53 54 -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebPaymentCoordinatorClient.mm
r242681 r246014 102 102 } 103 103 104 bool WebPaymentCoordinatorClient::supportsUnrestrictedApplePay() const 105 { 106 return false; 107 } 108 104 109 #endif
Note:
See TracChangeset
for help on using the changeset viewer.