Title: [213949] trunk/Source/WebCore
Revision
213949
Author
aes...@apple.com
Date
2017-03-14 15:53:32 -0700 (Tue, 14 Mar 2017)

Log Message

REGRESSION (r209760): Apple Pay doesn't work on sites that specify empty contact fields
https://bugs.webkit.org/show_bug.cgi?id=169639
<rdar://problem/30957789>

Reviewed by Anders Carlsson.

Shipping and billing contact fields are allowed to be empty.

* Modules/applepay/ApplePaySession.cpp:
(WebCore::convertAndValidate):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (213948 => 213949)


--- trunk/Source/WebCore/ChangeLog	2017-03-14 22:38:21 UTC (rev 213948)
+++ trunk/Source/WebCore/ChangeLog	2017-03-14 22:53:32 UTC (rev 213949)
@@ -1,3 +1,16 @@
+2017-03-14  Andy Estes  <aes...@apple.com>
+
+        REGRESSION (r209760): Apple Pay doesn't work on sites that specify empty contact fields
+        https://bugs.webkit.org/show_bug.cgi?id=169639
+        <rdar://problem/30957789>
+
+        Reviewed by Anders Carlsson.
+
+        Shipping and billing contact fields are allowed to be empty.
+
+        * Modules/applepay/ApplePaySession.cpp:
+        (WebCore::convertAndValidate):
+
 2017-03-14  Anders Carlsson  <ander...@apple.com>
 
         Propagate PassKit errors

Modified: trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp (213948 => 213949)


--- trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp	2017-03-14 22:38:21 UTC (rev 213948)
+++ trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp	2017-03-14 22:53:32 UTC (rev 213949)
@@ -259,9 +259,6 @@
 
 static ExceptionOr<PaymentRequest::ContactFields> convertAndValidate(Vector<ApplePayPaymentRequest::ContactField>&& contactFields)
 {
-    if (contactFields.isEmpty())
-        return Exception { TypeError, "At least one contact field must be provided." };
-
     PaymentRequest::ContactFields result;
 
     for (auto& contactField : contactFields) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to