[Apple Pay] Consider phoneticName when encoding ContactFields
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Sep 2017 01:44:37 +0000 (01:44 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Sep 2017 01:44:37 +0000 (01:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=176885
<rdar://problem/34176419>

Reviewed by Tim Horton.

* Shared/Cocoa/WebCoreArgumentCodersCocoa.mm:
(IPC::ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::encode):
(IPC::ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::decode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222004 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm

index caa1546..aef333e 100644 (file)
@@ -1,3 +1,15 @@
+2017-09-13  Andy Estes  <aestes@apple.com>
+
+        [Apple Pay] Consider phoneticName when encoding ContactFields
+        https://bugs.webkit.org/show_bug.cgi?id=176885
+        <rdar://problem/34176419>
+
+        Reviewed by Tim Horton.
+
+        * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm:
+        (IPC::ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::encode):
+        (IPC::ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::decode):
+
 2017-09-13  Matt Lewis  <jlewis3@apple.com>
 
         Unreviewed, rolling out r221976.
index 17c50f0..5ccc690 100644 (file)
@@ -332,6 +332,7 @@ void ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::encode(Encoder
     encoder << contactFields.phone;
     encoder << contactFields.email;
     encoder << contactFields.name;
+    encoder << contactFields.phoneticName;
 }
 
 bool ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::decode(Decoder& decoder, ApplePaySessionPaymentRequest::ContactFields& contactFields)
@@ -344,6 +345,8 @@ bool ArgumentCoder<ApplePaySessionPaymentRequest::ContactFields>::decode(Decoder
         return false;
     if (!decoder.decode(contactFields.name))
         return false;
+    if (!decoder.decode(contactFields.phoneticName))
+        return false;
 
     return true;
 }