Bug 178609 - [Payment Request] Resolve PaymentRequest.show()'s accept promise when a payment is authorized
Summary: [Payment Request] Resolve PaymentRequest.show()'s accept promise when a payme...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andy Estes
URL:
Keywords: InRadar
Depends on:
Blocks: 174796
  Show dependency treegraph
 
Reported: 2017-10-20 16:52 PDT by Andy Estes
Modified: 2017-10-23 14:57 PDT (History)
11 users (show)

See Also:


Attachments
Patch (91.54 KB, patch)
2017-10-20 17:00 PDT, Andy Estes
no flags Details | Formatted Diff | Diff
Patch (95.99 KB, patch)
2017-10-23 12:29 PDT, Andy Estes
no flags Details | Formatted Diff | Diff
Patch (94.51 KB, patch)
2017-10-23 13:24 PDT, Andy Estes
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Estes 2017-10-20 16:52:41 PDT
[Payment Request] Resolve PaymentRequest.show()'s accept promise when a payment is authorized
Comment 1 Andy Estes 2017-10-20 17:00:38 PDT
Created attachment 324468 [details]
Patch
Comment 2 Build Bot 2017-10-20 17:03:07 PDT Comment hidden (obsolete)
Comment 3 Alex Christensen 2017-10-23 09:49:00 PDT
Comment on attachment 324468 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=324468&action=review

> Source/WebCore/Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp:287
> +    auto address = PaymentAddress::create();
> +    address->setCountry(contact.countryCode);

Could we make a constructor that takes these values so if we add one later we won't forget to add setters in all the necessary places?

> Source/WebCore/Modules/paymentrequest/PaymentAddress.h:38
> +    static Ref<PaymentAddress> create()

Yeah, let's add a meaningful constructor instead of a bunch of setters.
Comment 4 Andy Estes 2017-10-23 12:29:38 PDT Comment hidden (obsolete)
Comment 5 Andy Estes 2017-10-23 12:30:31 PDT
rdar://problem/33542813
Comment 6 WebKit Commit Bot 2017-10-23 12:33:14 PDT Comment hidden (obsolete)
Comment 7 Andy Estes 2017-10-23 13:24:11 PDT
Created attachment 324582 [details]
Patch
Comment 8 WebKit Commit Bot 2017-10-23 14:00:50 PDT
Comment on attachment 324582 [details]
Patch

Clearing flags on attachment: 324582

Committed r223855: <https://trac.webkit.org/changeset/223855>
Comment 9 WebKit Commit Bot 2017-10-23 14:00:52 PDT
All reviewed patches have been landed.  Closing bug.