| 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 ea50249f3b32d5982c004280615331f9d82c4128..4cf7359cae81c47b1d2150f335a2597e7a659577 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -108,12 +108,12 @@ void validateShippingOptionsOrPaymentItems(HeapVector<T> items, ExceptionState&
|
| {
|
| String errorMessage;
|
| for (const auto& item : items) {
|
| - if (!item.hasId()) {
|
| + if (!item.hasId() || item.id().isEmpty()) {
|
| exceptionState.throwTypeError("Item id required");
|
| return;
|
| }
|
|
|
| - if (!item.hasLabel()) {
|
| + if (!item.hasLabel() || item.label().isEmpty()) {
|
| exceptionState.throwTypeError("Item label required");
|
| return;
|
| }
|
|
|