[Cocoa] Add a "supportedCountries" property to ApplePayPaymentRequest
Created attachment 311750 [details]
Created attachment 311754 [details]
Created attachment 311756 [details]
Comment on attachment 311756 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=311756&action=review
> + std::optional<Vector<String>> supportedCountries;
I'm not sure the difference between nullopt and an empty vector is important enough to make this an optional vector.
> +SETUP: request = validRequest(); request.supportedCountries = 7;
> +PASS new ApplePaySession(3, request) threw exception TypeError: Value is not a sequence.
Let's add a test that contains a valid sequence that contains things that are not strings. Also an empty sequence.
Created attachment 311837 [details]
Created attachment 311838 [details]
Comment on attachment 311838 [details]
Clearing flags on attachment: 311838
Committed r217723: <http://trac.webkit.org/changeset/217723>
All reviewed patches have been landed. Closing bug.