Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d7cc8ac53c0df874966c3adbd248446477c3c77a
https://github.com/WebKit/WebKit/commit/d7cc8ac53c0df874966c3adbd248446477c3c77a
Author: Lais Minchillo <[email protected]>
Date: 2026-10-09 (Fri, 09 Oct 2026)
Changed paths:
M Source/WTF/wtf/PlatformEnableCocoa.h
M Source/WebCore/Modules/applepay/ApplePayLineItem.h
M Source/WebCore/Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm
M Source/WebKit/Shared/WebCoreArgumentCodersPayment.serialization.in
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WebCore/cocoa/PaymentSummaryItemsCocoa.mm
Log Message:
-----------
[Apple Pay] Add an "estimated" line item type to WebCore
https://bugs.webkit.org/show_bug.cgi?id=326084
rdar://187363127
Reviewed by Abrar Rahman Protyasha.
Add WebCore and IPC plumbing for PKPaymentSummaryItemTypeEstimated. The feature
is gated on
HAVE(PASSKIT_ESTIMATED_SUMMARY_ITEM), which isn't defined in open source yet,
so this is
compiled out until PassKit's change is in the SDK. JavaScript can't create
estimated line
items yet; that comes in a follow-up.
* Source/WTF/wtf/PlatformEnableCocoa.h:
Add ENABLE_APPLE_PAY_ESTIMATED_LINE_ITEM.
* Source/WebCore/Modules/applepay/ApplePayLineItem.h:
Widen Type from bool to uint8_t and add Estimated.
* Source/WebCore/Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm:
(WebCore::toPKPaymentSummaryItemType): Map Estimated to
PKPaymentSummaryItemTypeEstimated.
* Source/WebKit/Shared/WebCoreArgumentCodersPayment.serialization.in:
Serialize the three-valued enum.
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebCore/cocoa/PaymentSummaryItemsCocoa.mm: Added.
Test the mapping to PassKit types, which isn't a straight cast.
Canonical link: https://commits.webkit.org/323248@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications