Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)

Created:
3 years, 9 months ago by rwlbuis
Modified:
3 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, gogerald+paymentswatch_chromium.org, haraken, rouslan+payments_chromium.org, blink-reviews, darin-cc_chromium.org, agrieve+watch_chromium.org, mahmadi+paymentswatch_chromium.org, darin (slow to review), abarth-chromium, sebsg+paymentswatch_chromium.org, foolip
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement request id in PaymentDetailsInit Implement request id in PaymentDetailsInit as well as id getter in PaymentRequest. In order for this functionality to make sense we pass the id to the payment app and make sure to set it in the PaymentResponse through the requestId attribute. Added PaymentRequestIdTest as a payment integration test for verifying the PaymentResponse contains the free-form identifier specified in PaymentDetailsInit. Added PaymentRequestTest.DetailsIdIsSet unit test to verify that PaymentDetailsInit.id is reflected in PaymentRequest.id. Added external/wpt/payment-request/payment-request-id.https.html to test that PaymentDetailsInit.id is reflected in PaymentRequest.id and that not providing an id generates a UUID. Added manual test external/wpt/payment-request/payment-request-response-id.html for verifying the PaymentResponse contains the free-form identifier specified in PaymentDetailsInit. Intent to Implement and Ship thread: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/WaHAg3wh7jw/vWAqxSnOCgAJ BUG=701254 TEST=PaymentRequestIdTest, DetailsIdIsSet Review-Url: https://codereview.chromium.org/2770193003 Cr-Commit-Position: refs/heads/master@{#467854} Committed: https://chromium.googlesource.com/chromium/src/+/c538713fa88d7fb0a831fbaa3b7dedafb9b5cdbf

Patch Set 1 #

Patch Set 2 : V2 #

Total comments: 1

Patch Set 3 : V3 #

Patch Set 4 : s/requestId/id #

Total comments: 22

Patch Set 5 : Add tests + address review comments #

Patch Set 6 : Add comment in mojom #

Total comments: 4

Patch Set 7 : Address review comments #

Patch Set 8 : Depend on reland patch #

Patch Set 9 : Fix JSONSerializerTest #

Patch Set 10 : Fix global-interface-listing expectation #

Patch Set 11 : Rebase and adjust tests #

Patch Set 12 : Add manual test #

Patch Set 13 : Bring back PaymentRequestTest.cpp #

Patch Set 14 : Fix PaymentRequestTest.cpp compilation #

Patch Set 15 : Fix payment-request-id.html syntax error #

Patch Set 16 : Fix payment-request-id.html security exception #

Patch Set 17 : Fix new test expectation #

Patch Set 18 : Rebase once more since mojom file moved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -38 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java View 1 2 3 4 5 6 7 8 9 10 7 chunks +15 lines, -13 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIdTest.java View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/test/data/payments/payment_request_id.js View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/test/data/payments/payment_request_id_test.html View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M components/payments/mojom/payment_request.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/payment-request/interfaces.https-expected.txt View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-id.https.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-response-id.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +140 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentDetailsInit.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponse.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponse.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponse.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 62 (32 generated)
please use gerrit instead
https://codereview.chromium.org/2770193003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2770193003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode59 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:59: private static final String EXTRA_REQUEST_ID = "requestId"; Why "requestId" ...
3 years, 9 months ago (2017-03-24 20:14:18 UTC) #3
rwlbuis
On 2017/03/24 20:14:18, ಠ_ಠ slow - w3c wrote: > https://codereview.chromium.org/2770193003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java > File > chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java > ...
3 years, 9 months ago (2017-03-27 14:30:58 UTC) #6
please use gerrit instead
I see "id" field in https://w3c.github.io/webpayments-payment-apps-api/#sec-app-request. Let's use that name. By the way, I see ...
3 years, 9 months ago (2017-03-27 14:36:06 UTC) #7
rwlbuis
On 2017/03/27 14:36:06, ಠ_ಠ slow - w3c wrote: > I see "id" field in > ...
3 years, 9 months ago (2017-03-27 14:53:50 UTC) #8
rwlbuis
On 2017/03/27 14:53:50, rwlbuis wrote: > On 2017/03/27 14:36:06, ಠ_ಠ slow - w3c wrote: > ...
3 years, 9 months ago (2017-03-27 15:15:27 UTC) #10
please use gerrit instead
On 2017/03/27 15:15:27, rwlbuis wrote: > BTW does the id really need to be unique ...
3 years, 9 months ago (2017-03-27 15:18:53 UTC) #11
rwlbuis
On 2017/03/27 15:18:53, ಠ_ಠ slow - w3c wrote: > On 2017/03/27 15:15:27, rwlbuis wrote: > ...
3 years, 9 months ago (2017-03-27 15:34:18 UTC) #12
please use gerrit instead
Let me know when you'd like a full review.
3 years, 9 months ago (2017-03-27 15:43:59 UTC) #13
rwlbuis
On 2017/03/27 15:43:59, ಠ_ಠ wrote: > Let me know when you'd like a full review. ...
3 years, 9 months ago (2017-03-27 15:49:39 UTC) #14
please use gerrit instead
On 2017/03/27 15:49:39, rwlbuis wrote: > JS specifies PaymentDetailsInit.id -> PaymentResponse returns same id? If ...
3 years, 9 months ago (2017-03-27 15:50:49 UTC) #15
please use gerrit instead
Please send out an intent-to-implement-and-ship to blink-dev@chromium.org. See instructions at https://www.chromium.org/blink/launching-features. Then link to your ...
3 years, 9 months ago (2017-03-27 15:52:49 UTC) #16
please use gerrit instead
https://codereview.chromium.org/2770193003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2770193003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode298 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:298: private String mId; Make this final and move it ...
3 years, 9 months ago (2017-03-27 16:22:37 UTC) #17
rwlbuis
On 2017/03/27 15:50:49, ಠ_ಠ wrote: > On 2017/03/27 15:49:39, rwlbuis wrote: > > JS specifies ...
3 years, 9 months ago (2017-03-27 20:43:29 UTC) #18
rwlbuis
https://codereview.chromium.org/2770193003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2770193003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode298 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:298: private String mId; On 2017/03/27 16:22:36, ಠ_ಠ wrote: > ...
3 years, 9 months ago (2017-03-27 20:45:30 UTC) #19
please use gerrit instead
LGTM % comments. Remember to file an intent to implement and ship before landing this. ...
3 years, 9 months ago (2017-03-27 21:16:05 UTC) #20
please use gerrit instead
Please put a link to the blink-dev intent in the CL description: https://groups.google.com/a/chromium.org/d/msg/blink-dev/WaHAg3wh7jw/vWAqxSnOCgAJ
3 years, 8 months ago (2017-03-28 16:43:01 UTC) #25
rwlbuis
On 2017/03/28 16:43:01, ಠ_ಠ wrote: > Please put a link to the blink-dev intent in ...
3 years, 8 months ago (2017-03-28 17:45:52 UTC) #27
rwlbuis
On 2017/03/28 16:43:01, ಠ_ಠ wrote: > Please put a link to the blink-dev intent in ...
3 years, 8 months ago (2017-03-28 17:45:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2770193003/240001
3 years, 8 months ago (2017-03-29 11:43:27 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/397426)
3 years, 8 months ago (2017-03-29 11:50:26 UTC) #33
please use gerrit instead
Need to wait for three L-G-T-M-s on the "request to implement and ship" before committing ...
3 years, 8 months ago (2017-03-29 13:25:17 UTC) #34
rwlbuis
On 2017/03/29 13:25:17, ಠ_ಠ wrote: > Need to wait for three L-G-T-M-s on the "request ...
3 years, 8 months ago (2017-03-29 15:46:20 UTC) #35
rwlbuis
+Tom Sepez for mojom change.
3 years, 8 months ago (2017-03-30 01:31:57 UTC) #37
Tom Sepez
lgtm
3 years, 8 months ago (2017-03-30 16:44:03 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2770193003/550001
3 years, 7 months ago (2017-04-27 20:31:07 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/358848)
3 years, 7 months ago (2017-04-27 20:48:36 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2770193003/550001
3 years, 7 months ago (2017-04-27 21:39:13 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/372221)
3 years, 7 months ago (2017-04-27 22:51:02 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2770193003/550001
3 years, 7 months ago (2017-04-28 01:33:54 UTC) #59
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 02:53:52 UTC) #62
Message was sent while issue was closed.
Committed patchset #18 (id:550001) as
https://chromium.googlesource.com/chromium/src/+/c538713fa88d7fb0a831fbaa3b7d...

Powered by Google App Engine
This is Rietveld 408576698