Changeset 215588 in webkit
- Timestamp:
- Apr 20, 2017, 4:49:34 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Modules/applepay/ApplePaySession.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r215585 r215588 1 2017-04-20 Anders Carlsson <andersca@apple.com> 2 3 Remove one use of toPaymentAuthorizationStatus 4 https://bugs.webkit.org/show_bug.cgi?id=171086 5 6 Reviewed by Tim Horton. 7 8 Just switch on the individual ApplePaySession::STATUS_ values. 9 10 * Modules/applepay/ApplePaySession.cpp: 11 (WebCore::ApplePaySession::completeShippingMethodSelection): 12 1 13 2017-04-20 Fujii Hironori <Hironori.Fujii@sony.com> 2 14 -
trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp
r215576 r215588 800 800 ApplePayShippingMethodUpdate update; 801 801 802 auto authorizationStatus = toPaymentAuthorizationStatus(status); 803 if (!authorizationStatus) 804 return Exception { INVALID_ACCESS_ERR }; 805 806 if (*authorizationStatus != PaymentAuthorizationStatus::Success) { 802 switch (status) { 803 case ApplePaySession::STATUS_SUCCESS: 804 break; 805 case ApplePaySession::STATUS_FAILURE: 806 case ApplePaySession::STATUS_INVALID_BILLING_POSTAL_ADDRESS: 807 case ApplePaySession::STATUS_INVALID_SHIPPING_POSTAL_ADDRESS: 808 case ApplePaySession::STATUS_INVALID_SHIPPING_CONTACT: 809 case ApplePaySession::STATUS_PIN_REQUIRED: 810 case ApplePaySession::STATUS_PIN_INCORRECT: 811 case ApplePaySession::STATUS_PIN_LOCKOUT: 807 812 // This is a fatal error. Cancel the request. 808 813 m_state = State::CancelRequested; 809 814 paymentCoordinator().cancelPaymentSession(); 810 815 return { }; 816 817 default: 818 return Exception { INVALID_ACCESS_ERR }; 811 819 } 812 820
Note:
See TracChangeset
for help on using the changeset viewer.