Changeset 214179 in webkit


Ignore:
Timestamp:
Mar 20, 2017 11:30:19 AM (7 years ago)
Author:
andersca@apple.com
Message:

Fix a paste-o in WebPaymentCoordinatorProxy::platformCompletePaymentSession
https://bugs.webkit.org/show_bug.cgi?id=169881
rdar://problem/31030944

Reviewed by Dan Bernstein.

Don't always pass PKPaymentAuthorizationStatusFailure to the completion handler.

  • UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:

(WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentSession):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r214174 r214179  
     12017-03-20  Anders Carlsson  <andersca@apple.com>
     2
     3        Fix a paste-o in WebPaymentCoordinatorProxy::platformCompletePaymentSession
     4        https://bugs.webkit.org/show_bug.cgi?id=169881
     5        rdar://problem/31030944
     6
     7        Reviewed by Dan Bernstein.
     8
     9        Don't always pass PKPaymentAuthorizationStatusFailure to the completion handler.
     10
     11        * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
     12        (WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentSession):
     13
    1142017-03-20  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm

    r213946 r214179  
    632632
    633633#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)
    634     auto pkPaymentAuthorizationResult = adoptNS([allocPKPaymentAuthorizationResultInstance() initWithStatus:PKPaymentAuthorizationStatusFailure errors:result ? toNSErrors(result->errors).get() : @[ ]]);
     634    auto pkPaymentAuthorizationResult = adoptNS([allocPKPaymentAuthorizationResultInstance() initWithStatus:toPKPaymentAuthorizationStatus(status) errors:result ? toNSErrors(result->errors).get() : @[ ]]);
    635635    m_paymentAuthorizationViewControllerDelegate->_paymentAuthorizedCompletion(pkPaymentAuthorizationResult.get());
    636636#else
Note: See TracChangeset for help on using the changeset viewer.