Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91279c62cb946d291e35eb9e67ae0f73eedc855c
      
https://github.com/WebKit/WebKit/commit/91279c62cb946d291e35eb9e67ae0f73eedc855c
  Author: Tim Horton <[email protected]>
  Date:   2024-07-10 (Wed, 10 Jul 2024)

  Changed paths:
    M Source/WTF/wtf/PlatformEnableCocoa.h
    M Source/WTF/wtf/PlatformHave.h
    M Source/WTF/wtf/PlatformUse.h
    M Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm
    M Source/WebCore/PAL/pal/spi/cocoa/PassKitInstallmentsSPI.h
    M Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
    M Tools/TestWebKitAPI/Tests/IPC/IPCSerialization.mm

  Log Message:
  -----------
  Clean up some Apple Pay related feature flags
https://bugs.webkit.org/show_bug.cgi?id=276396
rdar://131420608

Reviewed by Abrar Rahman Protyasha and Sam Weinig.

* Source/WTF/wtf/PlatformEnableCocoa.h:
Assume ENABLE_APPLE_PAY_FEATURES if ENABLE_APPLE_PAY.
Add ENABLE_APPLE_PAY_SETUP.

* Source/WTF/wtf/PlatformHave.h:
Add HAVE_PASSKIT and make it toggle all of the universally available 
HAVE_PASSKIT_* flags.
Squish a bunch of the aforementioned flags together, removing some always-true 
version checks.

* Source/WTF/wtf/PlatformUse.h:
Define USE_PASSKIT in only one place.

* Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm:
(WebCore::convert):
Drive-by workaround for a warning with PassKit on some recent SDKs.

* Source/WebCore/PAL/pal/spi/cocoa/PassKitInstallmentsSPI.h:
Remove PASSKIT_INSTALLMENTS_IN_SDK, just use APPLE_INTERNAL_SDK like other SPI 
headers.

* Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::WebPaymentCoordinatorProxy::platformBeginApplePaySetup):
(WebKit::WebPaymentCoordinatorProxy::platformEndApplePaySetup):
Respect ENABLE_APPLE_PAY_SETUP. Fail immediately if it's not available.

* Tools/TestWebKitAPI/Tests/IPC/IPCSerialization.mm:
(operator==):
(TEST(IPCSerialization, Basic)):
USE(PASSKIT) already covers these platform exclusions; stop duplicating them.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to