[Payment Request] show() should only be called with user activation
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2017 16:35:59 +0000 (16:35 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2017 16:35:59 +0000 (16:35 +0000)
commit1ce391ba4478deee0e785ec75e5f106039a77c57
tree36dd526cf67a5091e06e01d1f07fbed048fb871d
parent3b28ae087c958a5746ea3f80862e792c0a27f8d3
[Payment Request] show() should only be called with user activation
https://bugs.webkit.org/show_bug.cgi?id=179056

Reviewed by Sam Weinig.

Source/WebCore:

Updated existing tests to call PaymentRequest.show() with user activation.

* Modules/paymentrequest/PaymentRequest.cpp:
(WebCore::PaymentRequest::show):

LayoutTests:

* http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https.html:
* http/tests/paymentrequest/payment-request-canmakepayment-method.https.html:
* http/tests/paymentrequest/payment-request-change-shipping-address.https.html:
* http/tests/paymentrequest/payment-request-change-shipping-option.https.html:
* http/tests/paymentrequest/payment-request-show-method.https.html:
* http/tests/paymentrequest/payment-response-complete-method.https.html:
* http/tests/paymentrequest/payment-response-methodName-attribute.https.html:
* http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html:
* http/tests/paymentrequest/payment-response-payerName-attribute.https.html:
* http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html:
* http/tests/paymentrequest/resources/helpers.js:
(async.getPaymentRequestResponse):
* http/tests/paymentrequest/updateWith-method-pmi-handling.https.html:
* http/tests/resources/payment-request.js: Added.
(activateThen):
* http/tests/ssl/applepay/ApplePayMerchantValidationEvent.https.html:
* http/tests/ssl/applepay/ApplePayPaymentMethodUpdateEvent.https.html:
* http/tests/ssl/applepay/PaymentRequest.https.html:
* resources/ui-helper.js:
(window.UIHelper.activateElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https.html
LayoutTests/http/tests/paymentrequest/payment-request-canmakepayment-method.https.html
LayoutTests/http/tests/paymentrequest/payment-request-change-shipping-address.https.html
LayoutTests/http/tests/paymentrequest/payment-request-change-shipping-option.https.html
LayoutTests/http/tests/paymentrequest/payment-request-show-method.https.html
LayoutTests/http/tests/paymentrequest/payment-response-complete-method.https.html
LayoutTests/http/tests/paymentrequest/payment-response-methodName-attribute.https.html
LayoutTests/http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html
LayoutTests/http/tests/paymentrequest/payment-response-payerName-attribute.https.html
LayoutTests/http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html
LayoutTests/http/tests/paymentrequest/resources/helpers.js
LayoutTests/http/tests/paymentrequest/updateWith-method-pmi-handling.https.html
LayoutTests/http/tests/resources/payment-request.js [new file with mode: 0644]
LayoutTests/http/tests/ssl/applepay/ApplePayMerchantValidationEvent.https.html
LayoutTests/http/tests/ssl/applepay/ApplePayPaymentMethodUpdateEvent.https.html
LayoutTests/http/tests/ssl/applepay/PaymentRequest.https.html
LayoutTests/resources/ui-helper.js
Source/WebCore/ChangeLog
Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp