[webkit-changes] [WebKit/WebKit] 15bb01: [Payment Request] upstream new features

Nick Shearer noreply at github.com
Mon Mar 20 10:14:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15bb01cdb1b1b7a52c0ce87c734a732c26e8e707
      https://github.com/WebKit/WebKit/commit/15bb01cdb1b1b7a52c0ce87c734a732c26e8e707
  Author: Nick Shearer <nshearer at apple.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    A LayoutTests/http/tests/paymentrequest/paymentrequest-applePayLaterMode.https-expected.txt
    A LayoutTests/http/tests/paymentrequest/paymentrequest-applePayLaterMode.https.html
    M LayoutTests/platform/ios-wk2/TestExpectations
    M LayoutTests/platform/mac-wk2/TestExpectations
    M Source/WTF/wtf/PlatformEnableCocoa.h
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/DerivedSources-input.xcfilelist
    M Source/WebCore/DerivedSources-output.xcfilelist
    M Source/WebCore/DerivedSources.make
    M Source/WebCore/Modules/applepay/ApplePayFeature.h
    M Source/WebCore/Modules/applepay/ApplePayFeature.idl
    A Source/WebCore/Modules/applepay/ApplePayLaterMode.h
    A Source/WebCore/Modules/applepay/ApplePayLaterMode.idl
    M Source/WebCore/Modules/applepay/ApplePayRequestBase.cpp
    M Source/WebCore/Modules/applepay/ApplePayRequestBase.h
    M Source/WebCore/Modules/applepay/ApplePayRequestBase.idl
    M Source/WebCore/Modules/applepay/ApplePaySessionPaymentRequest.h
    M Source/WebCore/SourcesCocoa.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/testing/MockPaymentCoordinator.cpp
    M Source/WebCore/testing/MockPaymentCoordinator.h
    M Source/WebCore/testing/MockPaymentCoordinator.idl
    M Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm

  Log Message:
  -----------
  [Payment Request] upstream new features
https://bugs.webkit.org/show_bug.cgi?id=253983
<rdar://problem/106771944>

Reviewed by Dean Jackson.

Source/WebCore:

 - Apple Pay later mode (`HAVE_APPLE_PAY_LATER_MODE` and `ENABLE_APPLE_PAY_LATER_MODE`)

Tests: http/tests/paymentrequest/paymentrequest-applePayLaterMode.https.html

* LayoutTests/http/tests/paymentrequest/paymentrequest-applePayLaterMode.https-expected.txt: Added.
* LayoutTests/http/tests/paymentrequest/paymentrequest-applePayLaterMode.https.html: Added.
* LayoutTests/platform/ios-wk2/TestExpectations:
* LayoutTests/platform/mac-wk2/TestExpectations:

* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WTF/wtf/PlatformHave.h:

* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:

* Source/WebCore/Modules/applepay/ApplePayFeature.h:
* Source/WebCore/Modules/applepay/ApplePayFeature.idl:
* Source/WebCore/Modules/applepay/ApplePayLaterMode.h: Copied from Source/WebCore/Modules/applepay/ApplePayRequestBase.idl.
* Source/WebCore/Modules/applepay/ApplePayLaterMode.idl: Copied from Source/WebCore/Modules/applepay/ApplePayRequestBase.idl.

* Source/WebCore/Modules/applepay/ApplePayRequestBase.cpp:
(WebCore::convertAndValidate):
* Source/WebCore/Modules/applepay/ApplePayRequestBase.h:
* Source/WebCore/Modules/applepay/ApplePayRequestBase.idl:
* Source/WebCore/Modules/applepay/ApplePaySessionPaymentRequest.h:
(WebCore::ApplePaySessionPaymentRequest::applePayLaterMode const):
(WebCore::ApplePaySessionPaymentRequest::setApplePayLaterMode):

* Source/WebCore/SourcesCocoa.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:

* Source/WebCore/testing/MockPaymentCoordinator.cpp:
(WebCore::MockPaymentCoordinator::showPaymentUI):
* Source/WebCore/testing/MockPaymentCoordinator.h:
* Source/WebCore/testing/MockPaymentCoordinator.idl:

* Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::toPKApplePayLaterMode):
(WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm:
(IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode):
(IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode):

Canonical link: https://commits.webkit.org/261878@main




More information about the webkit-changes mailing list