| Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| index d5b31b83a475329c0203d2d99af7cb3838baedd4..3fcd92b17082efa4fa7b4da7b6a9dc9cad2a44e7 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -451,6 +451,18 @@ void PaymentRequest::OnPaymentResponse(mojom::blink::PaymentResponsePtr response
|
| }
|
| }
|
|
|
| + if (m_options.requestPayerEmail() && response->payer_email.isEmpty()) {
|
| + m_showResolver->reject(DOMException::create(SyntaxError));
|
| + clearResolversAndCloseMojoConnection();
|
| + return;
|
| + }
|
| +
|
| + if (m_options.requestPayerPhone() && response->payer_phone.isEmpty()) {
|
| + m_showResolver->reject(DOMException::create(SyntaxError));
|
| + clearResolversAndCloseMojoConnection();
|
| + return;
|
| + }
|
| +
|
| m_showResolver->resolve(new PaymentResponse(std::move(response), this));
|
|
|
| // Do not close the mojo connection here. The merchant website should call
|
|
|