RESOLVED FIXED 178191
[Apple Pay] Add subLocality and subAdministrativeArea to ApplePayPaymentContact and ApplePayError
https://bugs.webkit.org/show_bug.cgi?id=178191
Summary [Apple Pay] Add subLocality and subAdministrativeArea to ApplePayPaymentConta...
Andy Estes
Reported 2017-10-11 15:53:03 PDT
[Apple Pay] Add subLocality and subAdministrativeArea to ApplePayPaymentContact
Attachments
Patch (7.77 KB, patch)
2017-10-11 16:03 PDT, Andy Estes
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (1.07 MB, application/zip)
2017-10-11 17:10 PDT, Build Bot
no flags
Patch (15.96 KB, patch)
2017-10-16 14:45 PDT, Andy Estes
no flags
Andy Estes
Comment 1 2017-10-11 16:02:10 PDT
Andy Estes
Comment 2 2017-10-11 16:03:27 PDT
Build Bot
Comment 3 2017-10-11 17:10:50 PDT Comment hidden (obsolete)
Build Bot
Comment 4 2017-10-11 17:10:51 PDT Comment hidden (obsolete)
Andy Estes
Comment 5 2017-10-11 17:14:40 PDT
Ryan Haddad
Comment 6 2017-10-11 17:19:59 PDT
This change broke the Sierra build: /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm:104:22: error: instance method '-setSubLocality:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access] /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm:110:22: error: instance method '-setSubAdministrativeArea:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access] /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm:147:40: error: property 'subLocality' not found on object of type 'CNPostalAddress *' /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm:150:50: error: property 'subAdministrativeArea' not found on object of type 'CNPostalAddress *' https://build.webkit.org/builders/Apple%20Sierra%20Release%20%2832-bit%20Build%29/builds/5699
Ryan Haddad
Comment 7 2017-10-11 17:47:54 PDT
Reverted r223215 for reason: This change broke the Sierra build. Committed r223221: <https://trac.webkit.org/changeset/223221>
Andy Estes
Comment 8 2017-10-11 20:15:52 PDT
(In reply to Ryan Haddad from comment #6) > This change broke the Sierra build: > > /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/ > applepay/cocoa/PaymentContactCocoa.mm:104:22: error: instance method > '-setSubLocality:' not found (return type defaults to 'id') > [-Werror,-Wobjc-method-access] > /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/ > applepay/cocoa/PaymentContactCocoa.mm:110:22: error: instance method > '-setSubAdministrativeArea:' not found (return type defaults to 'id') > [-Werror,-Wobjc-method-access] > /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/ > applepay/cocoa/PaymentContactCocoa.mm:147:40: error: property 'subLocality' > not found on object of type 'CNPostalAddress *' > /Volumes/Data/slave/sierra-32bit-release/build/Source/WebCore/Modules/ > applepay/cocoa/PaymentContactCocoa.mm:150:50: error: property > 'subAdministrativeArea' not found on object of type 'CNPostalAddress *' > > https://build.webkit.org/builders/Apple%20Sierra%20Release%20%2832- > bit%20Build%29/builds/5699 Huh, that builder is on 10.12.5 and these APIs are available in 10.12.4 and later. Maybe it's using an Xcode with an old SDK, though.
Andy Estes
Comment 9 2017-10-16 14:45:08 PDT
WebKit Commit Bot
Comment 10 2017-10-16 17:00:43 PDT
Comment on attachment 323944 [details] Patch Clearing flags on attachment: 323944 Committed r223447: <https://trac.webkit.org/changeset/223447>
WebKit Commit Bot
Comment 11 2017-10-16 17:00:45 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 12 2017-10-17 01:52:46 PDT
Looks like this patch broke builds on macOS 10.12.6 due to re-declaration of APIs on CNPostalAddress and CNMutablePostalAddress. As far as I can tell, the relevant API is defined post 10.12.4 but changing if-def to the following doesn't seem to help: #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101204 so I'm at loss here.
Andy Estes
Comment 13 2017-10-17 12:33:07 PDT
(In reply to Ryosuke Niwa from comment #12) > Looks like this patch broke builds on macOS 10.12.6 due to re-declaration of > APIs on CNPostalAddress and CNMutablePostalAddress. > > As far as I can tell, the relevant API is defined post 10.12.4 but changing > if-def to the following doesn't seem to help: > #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101204 > > so I'm at loss here. Reverted in r223566: <https://trac.webkit.org/changeset/223566/webkit>
Andy Estes
Comment 14 2017-10-17 14:42:49 PDT
Andy Estes
Comment 15 2017-10-17 16:10:52 PDT
Note You need to log in before you can comment on or make changes to this bug.