Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Apple Pay] PaymentRequest.canMakePayment() should resolve to true wh…
…enever Apple Pay is available https://bugs.webkit.org/show_bug.cgi?id=191039 Reviewed by Megan Gardner. Source/WebCore: During a recent Web Payments WG F2F, we decided that canMakePayment() should return true whenever the user agent supports one or more of the specified payment methods, even if those payment methods do not have active instruments. Change WebKit's implementation of canMakePayment() for Apple Pay to resolve with the value of ApplePaySession.canMakePayments() rather than ApplePaySession.canMakePaymentsWithActiveCard(). Added a test case to http/tests/paymentrequest/payment-request-canmakepayment-method.https.html. * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::canMakePayment): (WebCore::shouldDiscloseApplePayCapability): Deleted. * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::canMakePayments): (WebCore::MockPaymentCoordinator::canMakePaymentsWithActiveCard): * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.idl: LayoutTests: * http/tests/paymentrequest/payment-request-canmakepayment-method.https-expected.txt: * http/tests/paymentrequest/payment-request-canmakepayment-method.https.html: Canonical link: https://commits.webkit.org/205882@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters